:root {
  --blue: #0057ce;
  --indigo: #0046b0;
  --navy: #06003c;
  --navy-2: #17177e;
  --teal: #3ffdee;
  --sky: #56acff;
  --pink: #ffbdff;
  --rose: #f29cc6;
  --coral: #ff7583;
  --ink: #0b0b0f;
  --muted: #6d6d78;
  --line: #ebebf0;
  --green: #12b76a;
  --red: #ef4444;
  --sx: 1;
  --to-end: 90deg;
  --hx: 75%;
}
[dir="rtl"] { --sx: -1; --to-end: 270deg; --hx: 25%; }

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Vazirmatn", "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.01em; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding-top: 128px; }
.section--tight { padding-top: 128px; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 32px; border-radius: 999px;
  font-size: 20.8px; font-weight: 500; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--white { background: #fff; color: #000; }
.btn--white:hover { box-shadow: 0 6px 18px rgba(6, 0, 60, .18); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: #1d54d6; }
.btn--indigo { background: var(--indigo); color: #fff; }
.btn--indigo:hover { background: #003d99; }
.btn--sm { height: 44px; padding: 0 24px; font-size: 17px; }
.btn--xs { height: 34px; padding: 0 16px; font-size: 14px; }
.btn--xs svg { width: 13px; height: 13px; }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 30px 24px 0; pointer-events: none; }
.header__bar {
  pointer-events: auto; position: relative;
  max-width: 1272px; height: 60px; margin: 0 auto; padding: 0; padding-inline: 18px 10px;
  display: flex; align-items: center; gap: 24px;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(6, 0, 60, .06), 0 10px 30px rgba(6, 0, 60, .08);
}
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--indigo); font-size: 27px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.logo svg { width: 28px; height: 28px; }
.header .logo { width: 250px; }

.toggle { display: inline-flex; padding: 4px; background: #ededf0; border-radius: 999px; }
.toggle button { height: 34px; padding: 0 18px; border-radius: 999px; font-size: 17px; font-weight: 500; color: #8a8a94; transition: .2s; }
.toggle button.is-on { background: #fff; color: #000; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

.nav { flex: 1; display: flex; justify-content: center; gap: 28px; }
.burger { display: none; width: 40px; height: 40px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; margin-inline-start: auto; }
.burger i { width: 18px; height: 2px; border-radius: 2px; background: #222; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin: 10px; border-radius: 24px;
  height: calc(100svh - 20px); min-height: 700px; max-height: 860px;
  background: radial-gradient(120% 110% at var(--hx) 85%, var(--teal) 0, var(--blue) 100%);
  color: #fff;
}
.hero__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(80% 60% at 50% 60%, rgba(255, 255, 255, .08) 0%, transparent 70%); }
.hero__inner { height: 100%; display: flex; flex-direction: column; padding-top: 104px; }
.banner {
  height: 48px; flex: none; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(var(--to-end), var(--navy) 0%, var(--blue) 62%, var(--sky) 100%);
  font-size: 15px; padding: 0 16px; text-align: center;
}
.banner span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.banner svg { flex: none; }
.hero__grid { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hero__copy { align-self: center; padding: 24px 0 40px; padding-inline-start: 24px; }
.hero h1 { font-size: 62.4px; line-height: 1.05; }
.hero__sub { margin-top: 20px; max-width: 480px; font-size: 22px; line-height: 1.45; color: rgba(255, 255, 255, .78); }
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.stats { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 26px; }
.stats li { display: flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .85); }
.stats svg { width: 24px; height: 58px; transform: scaleX(var(--sx)); }
.stats svg.flip { transform: scaleX(calc(-1 * var(--sx))); }
.stats div { text-align: center; min-width: 68px; }
.stats b { display: block; font-size: 28px; font-weight: 500; line-height: 1.1; color: #fff; }
.stats span { font-size: 12px; opacity: .8; }

.hero__visual { position: relative; }
.hero__shapes { position: absolute; inset-inline-start: -6%; bottom: 0; width: 112%; height: 100%; transform: scaleX(var(--sx)); }
.hero__phone { position: absolute; left: 50%; top: 44px; transform: translateX(-50%); zoom: 1.12; }

/* Wallet / fiat hero modes */
body[data-mode="fiat"] .only-wallet, body:not([data-mode="fiat"]) .only-fiat { display: none !important; }
.hero__bg-fiat { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .6s ease; background: radial-gradient(120% 110% at var(--hx) 85%, var(--blue) 0, var(--navy) 100%); }
body[data-mode="fiat"] .hero__bg-fiat { opacity: 1; }
.hero__copy, .hero__visual, .banner { animation: paneIn .55s cubic-bezier(.2, .7, .2, 1) both; }
.hero__visual { animation-delay: .08s; }
@keyframes paneIn { from { opacity: 0; transform: translateY(14px); } }
.header__link { font-size: 17px; font-weight: 500; margin-inline-end: -8px; }
.header__link:hover { color: var(--indigo); }
.banner--lime { background: #ccff00; color: var(--ink); }
.banner--lime b { font-weight: 600; }
.btn--ghost { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.hero__grid--fiat { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.hero__grid--fiat .hero__sub { max-width: 440px; font-size: 20px; }
.stats--dim li { color: rgba(255, 255, 255, .55); }
.stats--dim b { color: rgba(255, 255, 255, .9); }

.fiat-vis__shape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: scaleX(var(--sx)); }
.glass { position: absolute; direction: rtl; text-align: right; font-family: "Vazirmatn", sans-serif; padding: 14px 16px; border-radius: 16px; color: #fff; background: rgba(120, 150, 255, .16); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 30px 60px -30px rgba(6, 0, 60, .8); }
.glass small { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.glass--activity { inset-inline-start: 24%; top: 5%; width: 310px; }
.glass--portfolio { inset-inline-start: 20%; top: 31%; width: 400px; padding: 18px 20px 14px; background: rgba(70, 110, 240, .55); }
.glass--assets { inset-inline-start: 45%; top: 62%; width: 256px; padding-top: 34px; }
.g-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 12px; }
.g-row > i { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); font-style: normal; font-size: 12px; }
.g-row b { display: block; font-weight: 600; font-size: 13px; }
.g-row span { font-size: 10px; color: rgba(255, 255, 255, .55); }
.g-row .r { margin-inline-start: auto; text-align: end; }
.up { color: #56f0c0 !important; } .down { color: #ff8a98 !important; }
.g-head { display: flex; justify-content: space-between; align-items: center; }
.g-head em { font-style: normal; font-size: 10px; padding: 3px 8px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .3); font-family: ui-monospace, Menlo, monospace; color: rgba(255, 255, 255, .8); }
.g-value { margin-top: 12px; font-size: 32px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.g-pct { font-size: 14px; font-weight: 500; }
.glass--portfolio svg { display: block; width: 100%; height: 78px; margin-top: 6px; overflow: visible; }
.g-foot { display: flex; justify-content: space-between; padding-top: 8px; margin-top: 4px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }

.scroll-cue { display: flex; justify-content: center; padding: 44px 0 0; }
.scroll-cue svg { width: 28px; height: 14px; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* ---------- Phone mockup ---------- */
.phone {
  direction: rtl; text-align: right; font-family: "Vazirmatn", sans-serif;
  position: relative; flex: none; width: 290px; height: 600px; padding: 9px;
  border-radius: 48px;
  background: linear-gradient(145deg, #f7f8fa, #c6c9d0 38%, #f0f1f4 60%, #b4b8c0);
  box-shadow: inset 0 0 0 1.500px #a6aab3, 0 34px 70px -24px rgba(6, 0, 60, .5), 0 14px 28px -14px rgba(6, 0, 60, .3);
}
.phone__screen { position: relative; height: 100%; border-radius: 40px; overflow: hidden; background: #fff; color: var(--ink); font-size: 11px; line-height: 1.3; display: flex; flex-direction: column; }
.phone__status { position: relative; flex: none; height: 40px; padding: 4px 24px 0; display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 600; }
.phone__island { position: absolute; left: 50%; top: 9px; width: 84px; height: 24px; margin-left: -42px; border-radius: 14px; background: #0b0b0f; }
.phone__bars { display: inline-flex; align-items: flex-end; gap: 2px; }
.phone__bars i { width: 3px; background: #0b0b0f; border-radius: 1px; }
.phone__bars i:nth-child(1) { height: 5px; } .phone__bars i:nth-child(2) { height: 7px; } .phone__bars i:nth-child(3) { height: 9px; }

.ph-top { display: flex; justify-content: space-between; padding: 6px 16px 2px; }
.ph-back { width: 8px; height: 8px; border-left: 2px solid #111; border-bottom: 2px solid #111; transform: rotate(45deg); margin: 4px 0 0 3px; }
.ph-user { width: 12px; height: 12px; border-radius: 50% 50% 4px 4px; background: #111; }
.ph-id { display: flex; gap: 10px; align-items: center; padding: 8px 16px; }
.ph-avatar { width: 58px; height: 58px; border-radius: 12px; flex: none; background: radial-gradient(circle at 32% 38%, #fff 0 5px, transparent 6px), radial-gradient(circle at 68% 38%, #fff 0 5px, transparent 6px), linear-gradient(140deg, #3ffdee, #0057ce 60%, #0046b0); }
.ph-name { font-size: 10px; color: var(--muted); }
.ph-balance { font-size: 25px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.ph-pnl { display: inline-block; margin-top: 2px; padding: 2px 6px; border-radius: 6px; background: #e8f8ef; color: var(--green); font-size: 8.500px; font-weight: 600; }
.ph-pnl b { color: #111; }
.ph-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 6px 16px 10px; }
.ph-actions span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0 6px; border-radius: 10px; background: #f3f3f6; font-size: 8.500px; color: #44444d; }
.ic { width: 14px; height: 14px; border: 2px solid #111; border-radius: 3px; }
.ic-qr { border-style: dashed; }
.ic-card { height: 11px; border-top-width: 4px; }
.ic-send { border: 0; width: 0; height: 0; border-left: 12px solid #111; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-radius: 0; }
.ic-swap { border-width: 2px 0; border-radius: 0; height: 9px; }
.ph-tabs { display: flex; gap: 16px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 9.500px; color: #9a9aa4; }
.ph-tabs b, .ph-tabs span { padding: 6px 0; }
.ph-tabs b { color: #111; border-bottom: 2px solid #111; font-weight: 600; }
.ph-row { display: flex; align-items: center; gap: 6px; margin: 10px 12px 0; padding: 10px; border: 1px solid var(--line); border-radius: 12px; font-size: 10px; }
.ph-row--flat { margin: 0; padding: 0; border: 0; }
.ph-row b { font-weight: 600; }
.ph-row em { font-style: normal; font-size: 8px; padding: 1px 4px; border-radius: 4px; background: #f0f0f3; color: var(--muted); }
.ph-row strong { margin-inline-start: auto; font-weight: 600; font-size: 11px; }
.ph-dot { width: 16px; height: 16px; border-radius: 50%; flex: none; }
.ph-dot--ink { border-radius: 5px; background: #111; }
.ph-filter { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px 0; font-size: 8.500px; color: #55555e; }
.ph-seg { display: inline-flex; padding: 2px; border-radius: 8px; background: #f0f0f3; }
.ph-seg b, .ph-seg i { padding: 3px 7px; border-radius: 6px; font-style: normal; font-weight: 500; }
.ph-seg b { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.ph-card { margin: 10px 12px 0; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.ph-big { margin-top: 6px; font-size: 19px; font-weight: 500; letter-spacing: -0.02em; }
.ph-green { color: var(--green); font-size: 8.500px; font-weight: 600; }
.ph-chart { display: block; width: 100%; height: 62px; margin-top: 4px; }
.ph-range { display: flex; justify-content: space-between; margin-top: 4px; font-size: 8px; color: #9a9aa4; }
.ph-range b { padding: 1px 6px; border-radius: 6px; background: #f0f0f3; color: #111; }
.ph-token { display: flex; align-items: center; gap: 8px; padding: 9px 16px 0; font-size: 10px; }
.ph-token .ph-dot { width: 22px; height: 22px; }
.ph-token b { display: block; font-weight: 600; }
.ph-token small { font-size: 8.500px; color: var(--muted); }
.ph-token .r { margin-inline-start: auto; text-align: end; }
.g { color: var(--green) !important; } .r.small, small.r { color: var(--red); }
.ph-title { display: flex; justify-content: space-between; align-items: center; padding: 6px 16px 10px; font-size: 21px; font-weight: 500; letter-spacing: -0.02em; }
.ph-nav { margin-top: auto; display: flex; justify-content: space-around; padding: 10px 14px 16px; border-top: 1px solid var(--line); }
.ph-nav i { width: 18px; height: 18px; border-radius: 6px; background: #d9d9df; }
.ph-nav i.on { background: #111; }

.sw-box { margin: 0 12px; padding: 10px 12px; border-radius: 14px; background: #f5f5f8; }
.sw-box small { font-size: 8.500px; color: var(--muted); }
.sw-box > div { display: flex; justify-content: space-between; align-items: center; margin: 5px 0; }
.sw-box b { font-size: 22px; font-weight: 500; }
.sw-tok { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px 4px 4px; border-radius: 999px; background: #fff; font-size: 11px; font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.sw-tok i { width: 16px; height: 16px; border-radius: 50%; }
.sw-flip { width: 24px; height: 24px; margin: -6px auto; position: relative; z-index: 1; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid var(--line); font-size: 11px; }
.sw-rows { margin: 12px 12px 0; border: 1px solid var(--line); border-radius: 12px; }
.sw-rows div { display: flex; justify-content: space-between; padding: 8px 10px; font-size: 9.500px; }
.sw-rows div + div { border-top: 1px solid var(--line); }
.sw-rows dt { color: var(--muted); } .sw-rows dd { margin: 0; font-weight: 600; }
.sw-btn { margin: 14px 12px 0; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #111; color: #fff; font-size: 11px; font-weight: 600; }

.ex-circles { display: flex; gap: 10px; padding: 0 16px 6px; }
.ex-circles i { width: 38px; height: 38px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px #fff, 0 0 0 3.500px var(--c); }
.ex-head { padding: 12px 16px 6px; font-size: 11px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.ex-head em { font-style: normal; font-size: 7.500px; padding: 1px 5px; border-radius: 4px; background: #ffe7e7; color: var(--red); }
.ex-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 12px; }
.ex-grid div { padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
.ex-grid i { display: block; width: 18px; height: 18px; border-radius: 50%; margin-bottom: 6px; }
.ex-grid b { display: block; font-size: 9.500px; font-weight: 600; }
.ex-grid small { font-size: 8px; }
.ex-apps { display: flex; gap: 8px; padding: 0 16px; }
.ex-apps i { width: 38px; height: 38px; border-radius: 10px; background: var(--c); }

/* ---------- Scroll story ---------- */
.story { position: relative; height: 420vh; margin-top: 20px; }
.story__sticky { position: sticky; top: 0; height: 100vh; min-height: 640px; overflow: hidden; }
.step {
  position: absolute; inset: 0; margin: 0 auto; max-width: 1280px; padding: 60px 24px 0;
  display: grid; grid-template-columns: 400px minmax(0, 1fr); align-items: center; gap: 24px;
  opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s;
}
.step.is-active { opacity: 1; visibility: visible; }
.step__copy { padding-inline-start: 24px; transform: translateY(16px); transition: transform .6s ease; }
.step.is-active .step__copy { transform: none; }
.step__copy h2 { font-size: 46.8px; line-height: 1.1; }
.step__copy p { margin: 18px 0 30px; font-size: 20px; color: #55555e; }
.step__visual { position: relative; height: 640px; }
.step__shape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: scaleX(var(--sx)) scale(.94) rotate(-3deg); transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.step.is-active .step__shape { transform: scaleX(var(--sx)); }
.step__phone { position: absolute; inset-inline-start: 38%; top: 50%; transform: translate(calc(-50% * var(--sx)), -46%); transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.step.is-active .step__phone { transform: translate(calc(-50% * var(--sx)), -50%); }

.fcard, .chips span { opacity: 0; transform: translateY(26px) rotate(calc(var(--r, 0deg) * var(--sx))) scale(.94); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.step.cards-in .fcard, .step.cards-in .chips span { opacity: 1; transform: rotate(calc(var(--r, 0deg) * var(--sx))); }
.fcard {
  position: absolute; width: 196px; padding: 16px 16px 18px; border-radius: 18px;
  color: #fff; font-size: 16px; line-height: 1.3;
  background: var(--fc, rgba(86, 140, 255, .82)); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: 0 20px 40px -18px rgba(6, 0, 60, .55);
}
.fcard__ic { display: block; width: 30px; height: 30px; margin-bottom: 14px; border-radius: 9px; background: rgba(255, 255, 255, .22); position: relative; }
.fcard__ic::after { content: ""; position: absolute; inset: 9px; border: 2px solid #fff; border-radius: 4px; }
.fcard em { position: absolute; top: -9px; inset-inline-end: 10px; padding: 2px 8px; border-radius: 6px; background: #8b3dff; font-size: 9px; font-style: normal; font-weight: 600; letter-spacing: .06em; }
[data-theme="blue"] { --fc: linear-gradient(150deg, rgba(110, 170, 255, .9), rgba(70, 120, 240, .86)); }
[data-theme="sunset"] { --fc: linear-gradient(150deg, rgba(120, 78, 230, .92), rgba(240, 110, 150, .9)); }
[data-theme="navy"] { --fc: linear-gradient(150deg, #2a2ac0, #14147e); }
.fcard--1 { inset-inline-start: 58%; top: 300px; --r: -5deg; transition-delay: .25s; }
.fcard--2 { inset-inline-start: 66%; top: 446px; --r: 5deg; transition-delay: .35s; }
.fcard--a { inset-inline-start: 60%; top: 130px; --r: 5deg; transition-delay: .1s; }
.fcard--b { inset-inline-start: 68%; top: 280px; --r: -5deg; transition-delay: .2s; }
.fcard--c { inset-inline-start: 59%; top: 426px; --r: 4deg; transition-delay: .3s; }

.chips { position: absolute; inset-inline-start: 57%; top: 96px; width: 300px; display: flex; flex-wrap: wrap; gap: 8px 6px; }
.chips span { display: inline-flex; align-items: center; gap: 6px; padding: 6px; padding-inline-end: 12px; border-radius: 10px; background: #fff; font-size: 15px; font-weight: 500; box-shadow: 0 10px 22px -10px rgba(6, 0, 60, .5); }
.chips span:nth-child(2n) { transition-delay: .08s; } .chips span:nth-child(3n) { transition-delay: .16s; }
.chips i { width: 22px; height: 22px; border-radius: 6px; }
.chips .chips__more { padding: 6px 14px; background: rgba(120, 170, 255, .9); color: #fff; }

.story__dots { position: absolute; inset-inline-end: 28px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; }
.story__dots i { width: 4px; height: 18px; border-radius: 4px; background: #dcdce3; transition: .3s; }
.story__dots i.on { height: 34px; background: var(--indigo); }

/* ---------- Download ---------- */
.download {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 540px; border-radius: 32px; color: #fff;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: radial-gradient(80% 60% at 50% 60%, rgba(255, 255, 255, .08) 0%, transparent 70%), linear-gradient(var(--to-end), var(--sky), var(--indigo));
}
.download__copy { padding: 48px; display: flex; flex-direction: column; align-items: flex-start; }
.tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .22); margin-bottom: 64px; }
.tabs button { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 16px; font-weight: 500; white-space: nowrap; color: rgba(255, 255, 255, .75); transition: .2s; }
.tabs button.is-on { background: #fff; color: var(--blue); }
.download h2, .callout h2 { font-size: 39px; line-height: 1.2; }
.download .lead { margin-top: 18px; max-width: 420px; font-size: 20px; color: rgba(255, 255, 255, .88); }
.download .fine { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, .78); }
.download__btns { margin-top: auto; padding-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.download__visual { position: relative; }
.download__shapes { position: absolute; inset: 0; width: 100%; height: 100%; transform: scaleX(var(--sx)); }
.download__phone { position: absolute; inset-inline-start: 50%; top: 70px; transform: translateX(calc(-30% * var(--sx))); zoom: .92; }
.qr { position: absolute; inset-inline-start: 50%; top: 170px; transform: translateX(calc(-118% * var(--sx))); width: 176px; height: 176px; padding: 14px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 8px rgba(255, 255, 255, .3), 0 30px 50px -20px rgba(6, 0, 60, .6); }
.qr__grid { width: 100%; height: 100%; display: grid; grid-template-columns: repeat(21, 1fr); grid-template-rows: repeat(21, 1fr); }
.qr__grid i.on { background: #0b0b0f; border-radius: 1px; }
.qr__logo { position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; color: var(--blue); border-radius: 11px; box-shadow: 0 0 0 4px #fff; }

/* ---------- Callouts ---------- */
.hl { color: #8f9bff; }


/* ---------- Headings ---------- */
.heading { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.heading h2, .display { font-size: 62.4px; line-height: 1; letter-spacing: -0.01em; }
.heading p { margin-top: 18px; font-size: 20px; color: #55555e; }

/* ---------- Trust ---------- */

/* ---------- Reviews ---------- */
.hl-blue { color: var(--indigo); }

/* ---------- Follow links ---------- */


/* ---------- FAQ ---------- */
.faq { max-width: 672px; margin: 0 auto; display: grid; gap: 48px; }
.faq__group { border: 1px solid var(--line); border-radius: 20px; padding: 8px 24px; box-shadow: 0 1px 2px rgba(6, 0, 60, .03); }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 18px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 16px; height: 16px; flex: none; color: #8b8b95; transition: transform .25s; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { padding: 0 0 22px; padding-inline-end: 32px; color: var(--muted); font-size: 16px; line-height: 1.55; }

/* ---------- Final CTA ---------- */

/* ---------- Footer ---------- */

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .header .logo { width: auto; }
  .nav { gap: 18px; }
  .hero h1, .heading h2, .display { font-size: 52px; }
  .step { grid-template-columns: 320px minmax(0, 1fr); }
  .step__copy h2 { font-size: 38px; }
}

@media (max-width: 860px) {
  .section, .section--tight { padding-top: 80px; }
  .header { padding: 18px 12px 0; }
  .nav, .header__cta { display: none; }
  .burger { display: flex; }
  .nav.is-open { display: flex; flex-direction: column; gap: 4px; position: absolute; top: 68px; left: 0; right: 0; padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 20px 40px rgba(6, 0, 60, .16); }

  .hero { height: auto; max-height: none; min-height: 0; margin: 6px; }
  .hero__inner { padding-top: 92px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { padding: 48px 0 0; }
  .hero h1, .heading h2, .display { font-size: 40px; }
  .hero__sub { font-size: 18px; }
  .btn { font-size: 18px; padding: 0 24px; }
  .stats { margin-top: 36px; gap: 12px 16px; }
  .hero__visual { height: 430px; margin-top: 32px; }
  .hero__phone { zoom: 1; top: 20px; }
  .hero__grid--fiat { grid-template-columns: 1fr; }
  .fiat-vis { height: 470px; zoom: .82; margin-bottom: 24px; }
  .glass--activity { inset-inline-start: 0; top: 0; width: 280px; }
  .glass--portfolio { inset-inline-start: 4%; top: 150px; width: 92%; }
  .glass--assets { inset-inline: auto 0; top: 300px; width: 240px; }

  .story { height: auto; margin-top: 40px; }
  .story__sticky { position: static; height: auto; min-height: 0; overflow: visible; }
  .story__dots { display: none; }
  .step { position: static; opacity: 1; visibility: visible; grid-template-columns: 1fr; padding: 56px 24px 0; }
  .step__copy { padding: 0; transform: none; }
  .step__copy h2 { font-size: 36px; }
  .step__visual { height: 520px; margin: 0 -24px; overflow: hidden; }
  .step__phone, .step.is-active .step__phone { inset-inline-start: 34%; transform: translate(calc(-50% * var(--sx)), -50%); zoom: .78; }
  .step__shape { transform: scaleX(var(--sx)); }
  .fcard, .chips span { opacity: 1; transform: rotate(calc(var(--r, 0deg) * var(--sx))); }
  .fcard { width: 150px; padding: 12px; font-size: 13px; }
  .fcard__ic { width: 24px; height: 24px; margin-bottom: 8px; }
  .fcard__ic::after { inset: 7px; }
  .fcard--1 { inset-inline-start: 56%; top: 250px; } .fcard--2 { inset-inline-start: 58%; top: 370px; }
  .fcard--a { inset-inline-start: 56%; top: 70px; } .fcard--b { inset-inline-start: 58%; top: 210px; } .fcard--c { inset-inline-start: 56%; top: 350px; }
  .chips { inset-inline-start: 54%; top: 40px; width: 180px; }
  .chips span { font-size: 12px; padding: 4px; padding-inline-end: 8px; }
  .chips i { width: 16px; height: 16px; }

  .download, .callout { grid-template-columns: 1fr; }
  .download__copy, .callout__copy { padding: 32px 24px; }
  .tabs { margin-bottom: 36px; }
  .download h2, .callout h2 { font-size: 30px; }
  .download__visual { height: 380px; }
  .download__phone { top: 30px; zoom: .8; }
  .qr { top: 110px; width: 140px; height: 140px; transform: translateX(calc(-112% * var(--sx))); }




  .faq { gap: 24px; }
  .faq summary { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ---------- RTL / Persian ---------- */
[dir="rtl"] body { line-height: 1.75; }
[dir="rtl"] * { letter-spacing: 0 !important; }
[dir="rtl"] :is(h1, h2, h3) { font-weight: 600; }
[dir="rtl"] .hero h1 { line-height: 1.35; }
[dir="rtl"] .step__copy h2 { line-height: 1.4; }
[dir="rtl"] :is(.download h2, .callout h2) { line-height: 1.5; }
[dir="rtl"] :is(.heading h2, .display) { line-height: 1.35; }
[dir="rtl"] :is(.tile h3, .trust__card h3) { line-height: 1.5; }
[dir="rtl"] .stats b { font-size: 24px; line-height: 1.4; }
[dir="rtl"] .stats { gap: 12px; }
[dir="rtl"] .stats div { min-width: 70px; }
[dir="rtl"] .fcard { line-height: 1.6; font-size: 15px; }
[dir="rtl"] svg:has(> use[href="#i-arrow"]) { transform: scaleX(-1); }

/* Feature badges (replace the auditor wordmarks) */

@media (max-width: 860px) {
  .header__bar { gap: 10px; padding-inline: 12px 4px; }
  .logo { font-size: 22px; gap: 6px; }
  .logo svg { width: 24px; height: 24px; }
  .toggle button { height: 32px; padding: 0 12px; font-size: 15px; }
  [dir="rtl"] :is(.hero h1, .heading h2, .display) { font-size: 33px; }
  [dir="rtl"] .step__copy h2 { font-size: 31px; }
}

@media (max-width: 860px) {
  .toggle button { padding: 0 10px; font-size: 14px; white-space: nowrap; }
}

/* ---------- Iranian-exchange layout pass ---------- */
@media (min-width: 861px) {
  [dir="rtl"] .hero h1 { font-size: 54px; font-weight: 800; }
  [dir="rtl"] :is(.heading h2, .display) { font-size: 40px; font-weight: 800; }
  [dir="rtl"] .step__copy h2 { font-size: 40px; font-weight: 800; }
}
[dir="rtl"] .heading { margin-bottom: 40px; }
[dir="rtl"] .heading p { font-size: 18px; }
.hero__note { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, .82); }
.section--snug { padding-top: 88px; }

/* Persian app mock-ups */
[dir="rtl"] .phone__screen { line-height: 1.5; }
[dir="rtl"] .ph-back { transform: rotate(-135deg); margin: 4px 3px 0 0; }
[dir="rtl"] .ph-balance { font-size: 22px; }
.ph-balance small, .ph-big small { font-size: 10px; font-weight: 400; color: var(--muted); }
[dir="rtl"] .g-head em { font-family: inherit; }
.g-value small { font-size: 14px; font-weight: 400; opacity: .7; }

/* Trust strip */
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.trust-strip li { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.trust-strip svg { width: 42px; height: 42px; padding: 9px; flex: none; border-radius: 12px; background: #eef3ff; color: var(--blue); fill: none; stroke: currentColor; stroke-width: 1.600; stroke-linecap: round; stroke-linejoin: round; }
.trust-strip b { display: block; font-size: 15px; font-weight: 700; line-height: 1.6; }
.trust-strip span { font-size: 13px; color: var(--muted); }

/* Markets table */
.market { padding: 20px 24px 22px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 24px 60px -40px rgba(6, 0, 60, .4); }
.market__bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: #f1f2f6; }
.seg button { height: 36px; padding: 0 22px; border-radius: 9px; font-size: 15px; font-weight: 600; color: #6d6d78; }
.seg button.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.pills { display: flex; gap: 8px; }
.pills button { height: 36px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; color: #55555e; }
.pills button.is-on { border-color: var(--blue); background: #eef3ff; color: var(--blue); }
.market table { width: 100%; border-collapse: collapse; }
.market th { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: start; font-size: 13px; font-weight: 500; color: var(--muted); }
.market td { padding: 13px 8px; border-bottom: 1px solid var(--line); font-size: 16px; vertical-align: middle; }
.market tbody tr:last-child td { border-bottom: 0; }
.market tbody tr:hover { background: #fafbff; }
.coin { display: flex; align-items: center; gap: 12px; }
.coin i { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; color: #fff; font: 600 10px/1 "DM Sans", sans-serif; }
.coin b { display: block; font-weight: 700; line-height: 1.5; }
.coin span { font: 500 12px/1.2 "DM Sans", sans-serif; color: var(--muted); }
.price b { font-weight: 700; }
.price span { margin-inline-start: 6px; font-size: 12px; color: var(--muted); }
.chg { display: inline-block; min-width: 78px; padding: 3px 10px; border-radius: 8px; direction: ltr; text-align: center; font-size: 14px; font-weight: 600; }
.chg.up { background: #e8f8ef; color: var(--green) !important; }
.chg.down { background: #fdecec; color: var(--red) !important; }
.chg.flat { background: #f1f2f6; color: #6d6d78; }
.spark { display: block; width: 110px; height: 36px; }
.btn-line { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border: 1px solid var(--blue); border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--blue); white-space: nowrap; transition: .15s; }
.btn-line:hover { background: var(--blue); color: #fff; }
.col-act { text-align: end; }
.market__foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.market__note { font-size: 13px; color: var(--muted); }
.link { font-size: 15px; font-weight: 600; color: var(--blue); }

/* Three steps */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; }
.steps3 li { position: relative; padding: 26px 24px 24px; border: 1px solid #e3e9ff; border-radius: 20px; background: #f6f8ff; }
.steps3 li > span { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 14px; background: var(--blue); color: #fff; font-size: 21px; font-weight: 800; line-height: 1; }
.steps3 h3 { font-size: 20px; font-weight: 700; }
.steps3 p { margin-top: 6px; font-size: 15px; color: #55555e; }
[dir="rtl"] .steps3 li:not(:last-child)::after { content: ""; position: absolute; top: 44px; left: -15px; z-index: 1; width: 9px; height: 9px; border-left: 2px solid #9db2ff; border-bottom: 2px solid #9db2ff; transform: rotate(45deg); }

/* Footer trust row */

@media (max-width: 860px) {
  .section--snug { padding-top: 56px; }
  .trust-strip { grid-template-columns: 1fr 1fr; gap: 10px; }
  .trust-strip li { padding: 12px; gap: 10px; }
  .trust-strip svg { width: 36px; height: 36px; padding: 8px; }
  .trust-strip b { font-size: 13px; }
  .trust-strip span { font-size: 11px; }
  .market { padding: 14px 12px 16px; border-radius: 18px; }
  .market .col-spark, .market .col-act { display: none; }
  .market td { font-size: 14px; padding: 11px 4px; }
  .market th { padding: 10px 4px; }
  .coin { gap: 8px; }
  .coin i { width: 32px; height: 32px; font-size: 9px; }
  .chg { min-width: 62px; font-size: 13px; }
  .pills { overflow-x: auto; }
  .steps3 { grid-template-columns: 1fr; gap: 12px; }
  [dir="rtl"] .steps3 li:not(:last-child)::after { display: none; }
}

/* ---------- Polish pass ---------- */
@media (min-width: 861px) {
  .section, .section--tight { padding-top: 104px; }
  .section--snug { padding-top: 72px; }
}
.eyebrow { display: inline-block; margin-bottom: 12px; padding: 5px 14px; border-radius: 999px; background: #eef3ff; color: var(--blue); font-size: 13px; font-weight: 700; line-height: 1.7; }
:focus-visible { outline: 3px solid rgba(0, 87, 206, .45); outline-offset: 3px; }
.btn--indigo, .btn--blue { background: linear-gradient(135deg, #1a6cf0, #0046b0); box-shadow: 0 12px 26px -14px rgba(0, 70, 176, .8); }
.btn--indigo:hover, .btn--blue:hover { background: linear-gradient(135deg, #0057ce, #003d99); box-shadow: 0 16px 30px -14px rgba(0, 70, 176, .9); }

/* Hero: glass stat bar and floating chips */
.stats { display: inline-flex; flex-wrap: nowrap; gap: 0 !important; margin-top: 40px; padding: 14px 6px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 18px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.stats svg { display: none; }
.stats li { gap: 0; padding: 0 22px; }
.stats li + li { border-inline-start: 1px solid rgba(255, 255, 255, .28); }
[dir="rtl"] .stats div { min-width: 0; }
[dir="rtl"] .stats b { font-size: 20px; font-weight: 700; }
.stats span { white-space: nowrap; }
.float-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, .94); color: var(--ink); font-size: 13px; line-height: 1.5; box-shadow: 0 20px 44px -18px rgba(6, 0, 60, .6); animation: floaty 5s ease-in-out infinite; }
.float-chip i, .float-chip svg { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; color: #fff; font: 700 16px/1 "DM Sans", sans-serif; }
.float-chip svg { padding: 8px; background: var(--green); stroke-width: 2.400; }
.float-chip b { display: block; font-weight: 700; }
.float-chip span { font-size: 12px; color: var(--muted); }
.float-chip .up-d { display: inline-block; direction: ltr; font-weight: 600; color: var(--green); }
.float-chip--a { top: 110px; inset-inline-start: 5%; }
.float-chip--b { bottom: 130px; inset-inline-end: 3%; animation-delay: -2.500s; }
@keyframes floaty { 50% { transform: translateY(-10px); } }

/* Icons inside feature cards and the phone mock-up */
.fcard__ic { display: grid; place-items: center; }
.fcard__ic::after { display: none; }
.fcard__ic svg { width: 18px; height: 18px; }
.ph-ic { width: 17px; height: 17px; color: #111; }

/* Ticker */
.ticker { display: flex; align-items: center; gap: 12px; max-width: 1280px; margin: 18px auto 0; padding: 0 24px; }
.ticker__tag { flex: none; padding: 2px 10px; border-radius: 999px; background: #f1f2f6; font-size: 12px; color: #6d6d78; }
.ticker__viewport { flex: 1; min-width: 0; overflow: hidden; direction: ltr; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker__track { display: flex; gap: 40px; width: max-content; padding-inline-end: 40px; animation: ticker 46s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { display: flex; align-items: center; gap: 8px; direction: rtl; font-size: 14px; white-space: nowrap; }
.ticker__item i, .calc__coins i { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; color: #fff; font: 700 11px/1 "DM Sans", sans-serif; }
.ticker__item b { font-weight: 700; }
.ticker__item em { direction: ltr; font-style: normal; font-weight: 600; color: #6d6d78; }
.ticker__item em.up { color: var(--green) !important; }
.ticker__item em.down { color: var(--red) !important; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Markets table: glyph coins and price flashes */
.coin i { font: 700 17px/1 "DM Sans", sans-serif; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .28); }
.flash-up { animation: flash-up 1.100s ease; }
.flash-down { animation: flash-down 1.100s ease; }
@keyframes flash-up { 0% { background: rgba(18, 183, 106, .22); } 100% { background: transparent; } }
@keyframes flash-down { 0% { background: rgba(239, 68, 68, .2); } 100% { background: transparent; } }

/* Quick buy */
.quick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: center; gap: 72px; }
.quick__copy h2 { font-size: 40px; font-weight: 800; line-height: 1.45; }
.quick__copy p { max-width: 520px; margin-top: 14px; font-size: 18px; color: #55555e; }
.ticks { display: grid; gap: 10px; margin-top: 24px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; }
.ticks li::before { content: ""; width: 24px; height: 24px; flex: none; border-radius: 50%; background: #e8f8ef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.500 4.500 4.500L19 7.500' fill='none' stroke='%2312b76a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.calc { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: 0 44px 90px -50px rgba(0, 87, 206, .6), 0 2px 6px rgba(6, 0, 60, .04); }
.calc::before { content: ""; position: absolute; inset: 12px; z-index: -1; border-radius: 28px; background: linear-gradient(135deg, var(--teal), var(--blue)); filter: blur(36px); opacity: .28; }
.calc__side { display: flex; width: 100%; }
.calc__side button { flex: 1; }
.calc__side button[data-side="buy"].is-on { color: var(--green); }
.calc__side button[data-side="sell"].is-on { color: var(--red); }
.calc__field { display: block; margin-top: 14px; padding: 12px 16px; border: 1.500px solid transparent; border-radius: 16px; background: #f6f7fb; transition: border-color .15s, background-color .15s; }
.calc__field:focus-within { border-color: var(--blue); background: #fff; }
.calc__field > span { font-size: 13px; color: var(--muted); }
.calc__field > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.calc__field input, .calc__field output { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: none; direction: ltr; text-align: right; font: 700 26px/1.5 "Vazirmatn", sans-serif; color: var(--ink); }
.calc__field b { flex: none; padding: 5px 12px; border-radius: 10px; background: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.calc__field--out b { background: #eef3ff; color: var(--blue); box-shadow: none; }
.calc__coins { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.calc__coins button { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; transition: .15s; }
.calc__coins button.is-on { border-color: var(--blue); background: #eef3ff; color: var(--blue); }
.calc__rate { margin-top: 12px; font-size: 13px; color: var(--muted); }
.calc__cta { width: 100%; height: 52px; margin-top: 12px; border-radius: 16px; font-size: 18px; }
.calc__note { margin-top: 10px; text-align: center; font-size: 12px; color: #9a9aa4; }

/* Why grid */
.why { display: grid; grid-template-columns: 1.150fr 1fr 1fr; gap: 20px; }
.why li { position: relative; overflow: hidden; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: #fff; transition: transform .25s, box-shadow .25s, border-color .25s; }
.why li:hover { transform: translateY(-4px); border-color: #d6defc; box-shadow: 0 26px 50px -34px rgba(6, 0, 60, .5); }
.why__ic { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 14px; background: #eef3ff; color: var(--blue); }
.why__ic svg { width: 24px; height: 24px; }
.why h3 { font-size: 20px; font-weight: 700; line-height: 1.6; }
.why p { margin-top: 8px; font-size: 15px; color: #55555e; }
.why .why__lead { grid-row: span 2; display: flex; flex-direction: column; border: 0; color: #fff; background: radial-gradient(120% 110% at 20% 90%, var(--teal) 0, var(--blue) 62%, var(--indigo) 100%); }
.why__lead > :not(.why__pattern) { position: relative; }
.why__pattern { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.why__lead .why__ic { background: rgba(255, 255, 255, .2); color: #fff; }
.why__lead h3 { font-size: 28px; font-weight: 800; }
.why__lead p { margin-bottom: 28px; font-size: 16px; color: rgba(255, 255, 255, .9); }
.why__lead .btn { align-self: flex-start; margin-top: auto; }

/* Resources */

/* Scroll reveal (class is added by script, so content stays visible without it) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .stats { display: grid; grid-template-columns: 1fr 1fr; row-gap: 12px !important; width: 100%; margin-top: 28px; }
  .stats li { justify-content: center; padding: 0 10px; }
  .stats li:nth-child(odd) { border-inline-start: 0; }
  .float-chip { display: none; }
  .ticker { padding: 0 16px; }
  .quick { grid-template-columns: 1fr; gap: 28px; }
  .quick__copy h2 { font-size: 31px; }
  .quick__copy p { font-size: 16px; }
  .calc { padding: 16px; border-radius: 22px; }
  .calc__field input, .calc__field output { font-size: 22px; }
  .why { grid-template-columns: 1fr; gap: 12px; }
  .why .why__lead { grid-row: auto; }
}

/* ---------- Header mega menus ---------- */
.nav { gap: 4px; align-items: center; }
.nav__link { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 14px; border-radius: 12px; font-size: 16px; font-weight: 500; color: #3b3b44; white-space: nowrap; transition: background-color .15s, color .15s; }
.nav__link svg { width: 14px; height: 14px; opacity: .6; transition: transform .25s; }
.nav__link:hover, .nav__item.is-open > .nav__link { background: #f1f4ff; color: var(--indigo); }
.nav__item.is-open > .nav__link svg { transform: rotate(180deg); opacity: 1; }
.mega { position: absolute; top: calc(100% + 12px); inset-inline: 0; z-index: 60; display: grid; grid-template-columns: minmax(0, 1.650fr) minmax(0, 1fr); gap: 8px; padding: 12px; border: 1px solid rgba(255, 255, 255, .9); border-radius: 24px; background: rgba(255, 255, 255, .98); box-shadow: 0 44px 90px -34px rgba(6, 0, 60, .5), 0 0 0 1px rgba(6, 0, 60, .05); opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.985); transform-origin: top center; transition: opacity .2s ease, transform .3s cubic-bezier(.2, .8, .2, 1), visibility .2s; }
.nav__item.is-open > .mega { opacity: 1; visibility: visible; transform: none; }
.mega__links { display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 4px; }
.mega__links a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; transition: background-color .15s; }
.mega__links a:hover { background: #f4f6ff; }
.nav__item.is-open .mega__links a { animation: mega-in .4s cubic-bezier(.2, .8, .2, 1) both; }
.nav__item.is-open .mega__links a:nth-child(2) { animation-delay: .03s; }
.nav__item.is-open .mega__links a:nth-child(3) { animation-delay: .06s; }
.nav__item.is-open .mega__links a:nth-child(4) { animation-delay: .09s; }
.nav__item.is-open .mega__links a:nth-child(5) { animation-delay: .12s; }
.nav__item.is-open .mega__links a:nth-child(6) { animation-delay: .15s; }
@keyframes mega-in { from { opacity: 0; transform: translateY(8px); } }
.mega__ic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 13px; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); font: 700 18px/1 "Vazirmatn", sans-serif; transition: transform .25s cubic-bezier(.2, .8, .2, 1), background-color .2s, color .2s; }
.mega__ic svg { width: 22px; height: 22px; }
.mega__links a:hover .mega__ic { background: var(--c); color: #fff; transform: scale(1.08) rotate(-5deg); }
.mega__links b { display: block; font-size: 15px; font-weight: 700; line-height: 1.7; color: var(--ink); }
.mega__links small { display: block; font-size: 13px; line-height: 1.6; color: var(--muted); }
.mega__side { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; background: #f6f8ff; }
.mega__title { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; color: #55555e; }
.mega__title em { padding: 1px 9px; border-radius: 999px; background: #fff; font-size: 11px; font-style: normal; font-weight: 400; color: #8b8b95; }
.mega__coins { display: grid; gap: 2px; }
.mega__coins li { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; font-size: 14px; transition: background-color .15s; }
.mega__coins li:hover { background: #fff; }
.mega__coins i { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; color: #fff; font: 700 12px/1 "DM Sans", sans-serif; }
.mega__coins b { font-weight: 700; }
.mega__coins span { margin-inline-start: auto; font-weight: 600; }
.mega__coins em { min-width: 52px; direction: ltr; text-align: left; font-size: 13px; font-style: normal; font-weight: 600; color: #6d6d78; }
.mega__coins em.up { color: var(--green) !important; }
.mega__coins em.down { color: var(--red) !important; }
.mega__side--feature { overflow: hidden; justify-content: flex-end; min-height: 212px; color: #fff; background: radial-gradient(120% 110% at 20% 90%, var(--teal) 0, var(--blue) 62%, var(--indigo) 100%); }
.mega__side--feature > :not(.mega__pattern) { position: relative; }
.mega__pattern { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mega__tag { align-self: flex-start; margin-bottom: auto; padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, .22); font-size: 12px; font-weight: 700; }
.mega__side--feature h4 { font-size: 19px; font-weight: 800; line-height: 1.6; }
.mega__side--feature p { font-size: 13px; color: rgba(255, 255, 255, .9); }
.mega__side--feature .btn { align-self: flex-start; margin-top: 4px; }
.menu-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(6, 0, 60, .22); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .25s; }
body.menu-open .menu-scrim { opacity: 1; }

/* ---------- Footer ---------- */
.sf { position: relative; isolation: isolate; overflow: hidden; margin: 104px 10px 10px; padding-top: 56px; border-radius: 28px; color: rgba(255, 255, 255, .76); background: radial-gradient(60% 80% at 100% 0%, rgba(0, 87, 206, .6), transparent 70%), radial-gradient(50% 70% at 0% 100%, rgba(63, 253, 238, .18), transparent 70%), #06042a; }
.sf__pattern { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: .4; -webkit-mask-image: radial-gradient(70% 90% at 85% 0%, #000, transparent 75%); mask-image: radial-gradient(70% 90% at 85% 0%, #000, transparent 75%); }
.sf__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: center; gap: 48px; padding-bottom: 40px; }
.sf .logo { color: #fff; }
.sf__brand p { max-width: 420px; margin: 14px 0 20px; font-size: 16px; }
.sf__apps { display: flex; flex-wrap: wrap; gap: 10px; }
.sf__apps a { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; background: rgba(255, 255, 255, .06); color: #fff; font-size: 14px; font-weight: 600; transition: background-color .2s, color .2s, transform .2s; }
.sf__apps a:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }
.sf__apps svg { width: 18px; height: 18px; }
.sf__support { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px; padding: 22px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; background: rgba(255, 255, 255, .07); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.sf__support-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, var(--teal), var(--blue)); color: #fff; }
.sf__support-ic svg { width: 26px; height: 26px; }
.sf__support b { font-size: 18px; color: #fff; }
.sf__support p { font-size: 14px; }
.sf__support .btn { grid-column: 1 / -1; }
.sf__cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; padding-top: 40px; padding-bottom: 40px; border-top: 1px solid rgba(255, 255, 255, .12); }
.sf__cols h4 { margin-bottom: 14px; font-size: 15px; font-weight: 700; color: #fff; }
.sf__cols a { position: relative; display: block; width: fit-content; padding: 6px 0; font-size: 15px; color: rgba(255, 255, 255, .66); transition: color .2s, transform .25s; }
.sf__cols a::after { content: ""; position: absolute; inset-inline: 0; bottom: 4px; height: 1px; background: var(--teal); transform: scaleX(0); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.sf__cols a:hover { color: #fff; transform: translateX(calc(4px * var(--sx))); }
.sf__cols a:hover::after { transform: scaleX(1); }
.sf__trust { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding-top: 28px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .12); }
.sf__risk { display: flex; align-items: center; gap: 10px; max-width: 580px; font-size: 14px; }
.sf__risk svg { width: 22px; height: 22px; flex: none; color: var(--teal); }
.sf__badges { display: flex; gap: 12px; }
.sf__badges span { display: grid; place-items: center; width: 88px; height: 88px; padding: 8px; border: 1px dashed rgba(255, 255, 255, .3); border-radius: 14px; text-align: center; font-size: 12px; line-height: 1.6; color: rgba(255, 255, 255, .55); }
.sf__base { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 20px; padding-bottom: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; }
.sf__social { display: flex; gap: 8px; }
.sf__social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; color: #fff; transition: background-color .2s, color .2s, transform .2s, border-color .2s; }
.sf__social a:hover { border-color: var(--teal); background: var(--teal); color: #06042a; transform: translateY(-3px); }
.sf__social svg { width: 19px; height: 19px; }
.sf__up { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; font-weight: 600; transition: background-color .2s; }
.sf__up:hover { background: rgba(255, 255, 255, .2); }
.sf__word { height: .640em; overflow: hidden; direction: ltr; text-align: center; font: 700 clamp(88px, 21vw, 300px)/.8 "DM Sans", sans-serif; letter-spacing: -0.05em !important; color: transparent; background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 85%); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 1px rgba(255, 255, 255, .1); user-select: none; pointer-events: none; }

@media (max-width: 860px) {
  .nav.is-open { align-items: stretch; max-height: calc(100svh - 110px); overflow-y: auto; }
  .nav__link { justify-content: space-between; width: 100%; height: 48px; }
  .mega { position: static; display: none; grid-template-columns: 1fr; padding: 0 0 8px; border: 0; background: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .nav__item.is-open > .mega { display: grid; }
  .mega__links { grid-template-columns: 1fr; }
  .nav__item.is-open .mega__links a { animation: none; }
  .mega__side { display: none; }
  .menu-scrim { display: none; }
  .sf { margin: 80px 6px 6px; padding-top: 36px; border-radius: 22px; }
  .sf__top { grid-template-columns: 1fr; gap: 24px; padding-bottom: 28px; }
  .sf__cols { grid-template-columns: 1fr 1fr; gap: 24px 16px; padding-top: 28px; padding-bottom: 28px; }
  .sf__base { flex-direction: column; align-items: flex-start; }
}

/* ---------- Theme toggle ---------- */
.theme-btn { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; color: #3b3b44; transition: background-color .15s, color .15s, transform .3s; }
.theme-btn:hover { background: #f1f4ff; color: var(--indigo); transform: rotate(-12deg); }
.theme-btn svg, .nav__theme svg { width: 20px; height: 20px; }
.theme-btn__sun, [data-theme="dark"] .theme-btn__moon { display: none; }
[data-theme="dark"] .theme-btn__sun { display: block; }
.nav__theme { display: none; }
.nav__theme svg { opacity: 1; }
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after { transition: background-color .4s ease, border-color .4s ease, color .4s ease, box-shadow .4s ease !important; }
@media (max-width: 860px) {
  .theme-btn { display: none; }
  .nav.is-open .nav__theme { display: inline-flex; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; }
}

/* ---------- Dark theme ---------- */
[data-theme="dark"] { color-scheme: dark; --line: rgba(255, 255, 255, .1); --muted: #9aa0c3; --d-bg: #070818; --d-surface: #10122a; --d-raised: #181b3a; --d-tint: #1b2452; --d-text: #eef0ff; --d-soft: #b9bedf; --d-link: #b1c5ff; }
[data-theme="dark"] body { background: var(--d-bg); color: var(--d-text); }

/* text that was dark grey on white */
[data-theme="dark"] :is(.step__copy p, .heading p, .quick__copy p, .why p, .res p, .steps3 p, .follow p, .mega__title, .auditors li) { color: var(--d-soft); }
[data-theme="dark"] :is(.mega__links b, .seg button.is-on, .calc__field input, .calc__field output) { color: var(--d-text); }
[data-theme="dark"] :is(.link, .eyebrow, .pills button.is-on, .calc__coins button.is-on) { color: var(--d-link); }

/* header */
[data-theme="dark"] .header__bar { background: rgba(16, 18, 42, .9); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 14px 36px rgba(0, 0, 0, .45); }
[data-theme="dark"] .header .logo { color: #8fb0ff; }
[data-theme="dark"] .toggle { background: #1c1f44; }
[data-theme="dark"] .toggle button { color: var(--muted); }
[data-theme="dark"] .toggle button.is-on { background: #2c3168; color: #fff; }
[data-theme="dark"] :is(.nav__link, .theme-btn, .header__link) { color: #c9cdee; }
[data-theme="dark"] :is(.nav__link:hover, .nav__item.is-open > .nav__link, .theme-btn:hover) { background: #1c1f44; color: #fff; }
[data-theme="dark"] .burger i { background: #fff; }
[data-theme="dark"] .nav.is-open { background: var(--d-surface); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 50px rgba(0, 0, 0, .5); }
[data-theme="dark"] .mega { border-color: rgba(255, 255, 255, .08); background: rgba(16, 18, 42, .98); box-shadow: 0 44px 90px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06); }
[data-theme="dark"] .mega__links a:hover { background: var(--d-raised); }
[data-theme="dark"] .mega__ic { background: color-mix(in srgb, var(--c) 24%, #10122a); color: color-mix(in srgb, var(--c) 70%, #fff); }
[data-theme="dark"] .mega__side:not(.mega__side--feature) { background: var(--d-raised); }
[data-theme="dark"] .mega__title em { background: rgba(255, 255, 255, .08); color: var(--muted); }
[data-theme="dark"] .mega__coins li:hover { background: rgba(255, 255, 255, .06); }
[data-theme="dark"] .mega__coins em { color: var(--muted); }
[data-theme="dark"] .menu-scrim { background: rgba(0, 0, 0, .5); }

/* hero keeps its colour but goes deeper */
[data-theme="dark"] .hero { background: radial-gradient(120% 110% at var(--hx) 85%, #1fb9cf 0, #1d4fd1 42%, #0a0f4a 100%); }

/* surfaces */
[data-theme="dark"] :is(.trust-strip li, .market, .calc, .why li:not(.why__lead), .res li, .steps3 li, .trust__card, .faq__group) { border-color: var(--line); background: var(--d-surface); }
[data-theme="dark"] :is(.why li:not(.why__lead):hover, .res li:hover) { border-color: rgba(177, 197, 255, .45); box-shadow: 0 26px 50px -30px rgba(0, 0, 0, .9); }
[data-theme="dark"] :is(.trust-strip svg, .why__ic, .eyebrow, .pills button.is-on, .calc__coins button.is-on, .calc__field--out b) { background: var(--d-tint); }
[data-theme="dark"] :is(.trust-strip svg, .why li:not(.why__lead) .why__ic) { color: var(--d-link); }
[data-theme="dark"] :is(.seg, .ticker__tag, .chg.flat) { background: var(--d-raised); color: var(--muted); }
[data-theme="dark"] .seg button { color: var(--muted); }
[data-theme="dark"] .seg button.is-on { background: #2c3168; box-shadow: none; }
[data-theme="dark"] .calc__side button[data-side="buy"].is-on { color: #4ade80; }
[data-theme="dark"] .calc__side button[data-side="sell"].is-on { color: #ff8a98; }
[data-theme="dark"] :is(.pills button, .calc__coins button, .auditors li) { border-color: var(--line); color: var(--d-soft); }
[data-theme="dark"] .market { box-shadow: 0 24px 60px -40px rgba(0, 0, 0, .9); }
[data-theme="dark"] .market tbody tr:hover { background: rgba(255, 255, 255, .03); }
[data-theme="dark"] .chg.up { background: rgba(18, 183, 106, .16); color: #4ade80 !important; }
[data-theme="dark"] .chg.down { background: rgba(239, 68, 68, .16); color: #ff8a98 !important; }
[data-theme="dark"] :is(.ticker__item em, .mega__coins em).up { color: #4ade80 !important; }
[data-theme="dark"] :is(.ticker__item em, .mega__coins em).down { color: #ff8a98 !important; }
[data-theme="dark"] .ticker__item em { color: var(--muted); }
[data-theme="dark"] .btn-line { border-color: var(--d-link); color: var(--d-link); }
[data-theme="dark"] .btn-line:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
[data-theme="dark"] .calc { box-shadow: 0 44px 90px -50px rgba(0, 87, 206, .9); }
[data-theme="dark"] .calc__field { background: var(--d-raised); }
[data-theme="dark"] .calc__field:focus-within { border-color: var(--d-link); background: #1f2349; }
[data-theme="dark"] .calc__field b { background: #2c3168; color: #fff; box-shadow: none; }
[data-theme="dark"] .calc__field--out b { color: var(--d-link); }
[data-theme="dark"] .ticks li::before { background-color: rgba(18, 183, 106, .18); }
[data-theme="dark"] .steps3 li > span { background: linear-gradient(135deg, #1a6cf0, #0046b0); }
[data-theme="dark"] .steps3 li:not(:last-child)::after { border-color: #4a5cbf; }
[data-theme="dark"] .story__dots i { background: #2a2e58; }
[data-theme="dark"] .story__dots i.on { background: var(--d-link); }
[data-theme="dark"] .chips span:not(.chips__more) { color: #0b0b0f; }
[data-theme="dark"] .faq summary svg { color: var(--muted); }
[data-theme="dark"] .hl-blue { color: var(--d-link); }
[data-theme="dark"] .sf { box-shadow: 0 0 0 1px rgba(255, 255, 255, .07); }
[data-theme="dark"] :focus-visible { outline-color: rgba(177, 197, 255, .6); }

/* ---------- Brand logo ---------- */
.logo { color: #0057ce; }
.logo svg { width: 124px; height: 32px; }
[data-theme="dark"] .header .logo, .sf .logo { color: #b1c5ff; }
.qr__logo { padding: 5px; background: #fff; color: #0057ce; }
.sf__word { display: block; width: min(1100px, 92%); height: auto; aspect-ratio: 140.28 / 36.12; margin: 8px auto -5%; color: #fff; opacity: .07; pointer-events: none; }
@media (max-width: 860px) {
  .logo svg { width: 100px; height: 26px; }
}

/* ---------- Headline weight contrast ---------- */
.thin { font-weight: 300; }
.accent { color: var(--blue); }
[data-theme="dark"] .accent { color: var(--d-link); }
@media (min-width: 861px) {
  [dir="rtl"] .hero h1 { font-size: 62px; line-height: 1.3; }
  [dir="rtl"] :is(.heading h2, .display, .faq-wrap__copy h2) { font-size: 46px; }
  [dir="rtl"] :is(.step__copy h2, .quick__copy h2) { font-size: 46px; }
}

/* ---------- Hero market card ---------- */
.hero-market { position: absolute; top: 50%; left: 50%; z-index: 1; width: min(410px, 94%); padding: 16px 20px 12px; border-radius: 26px; background: rgba(255, 255, 255, .97); color: var(--ink); box-shadow: 0 44px 90px -34px rgba(6, 0, 60, .6), 0 0 0 1px rgba(255, 255, 255, .6); transform: translate(-50%, -54%); }
.hero-market__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; border-bottom: 1px solid #ebebf0; }
.hero-market__tabs { display: flex; gap: 18px; }
.hero-market__tabs button { margin-bottom: -1px; padding: 8px 0; border-bottom: 2px solid transparent; font-size: 15px; font-weight: 600; color: #9a9aa4; transition: color .15s, border-color .15s; }
.hero-market__tabs button:hover { color: var(--ink); }
.hero-market__tabs button.is-on { border-color: var(--blue); color: var(--blue); }
.hero-market__head a { font-size: 13px; font-weight: 600; color: var(--blue); }
.hero-market__rows li { display: grid; grid-template-columns: auto minmax(0, 1fr) 92px auto; align-items: center; gap: 12px; padding: 11px 0; }
.hero-market__rows li + li { border-top: 1px solid #f1f1f5; }
.hero-market__rows i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; font: 700 16px/1 "DM Sans", sans-serif; }
.hero-market__rows b { display: block; font-size: 15px; font-weight: 700; line-height: 1.5; }
.hero-market__rows span { font: 500 12px/1.2 "DM Sans", sans-serif; color: #8b8b95; }
.hero-market__rows .spark { width: 92px; height: 32px; }
.hero-market__price { min-width: 104px; text-align: end; }
.hero-market__price em { display: block; direction: ltr; text-align: left; font-size: 12px; font-style: normal; font-weight: 600; color: #6d6d78; }
.hero-market__price em.up { color: var(--green) !important; }
.hero-market__price em.down { color: var(--red) !important; }
.hero-market__note { padding-top: 6px; border-top: 1px solid #f1f1f5; text-align: center; font-size: 11px; color: #9a9aa4; }
.float-chip--b { bottom: 56px; inset-inline-end: 0; }
[data-theme="dark"] .hero-market { background: rgba(16, 18, 42, .96); color: var(--d-text); box-shadow: 0 44px 90px -34px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08); }
[data-theme="dark"] :is(.hero-market__head, .hero-market__rows li + li, .hero-market__note) { border-color: var(--line); }
[data-theme="dark"] .hero-market__tabs button.is-on, [data-theme="dark"] .hero-market__head a { border-color: var(--d-link); color: var(--d-link); }
[data-theme="dark"] .hero-market__tabs button:hover { color: #fff; }
[data-theme="dark"] .hero-market__price em.up { color: #4ade80 !important; }
[data-theme="dark"] .hero-market__price em.down { color: #ff8a98 !important; }

/* ---------- Chart cards beside the phone ---------- */
.fcard--chart { width: 232px; padding: 14px 16px; border-color: rgba(6, 0, 60, .06); background: #fff; color: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; }
.fcard--chart small { display: block; font-size: 12px; color: #8b8b95; }
.fcard--chart b { display: block; font-size: 19px; font-weight: 700; line-height: 1.6; }
.fcard--chart b i { font-size: 11px; font-style: normal; font-weight: 400; color: #8b8b95; }
.fcard--chart > svg { display: block; width: 100%; height: 52px; margin: 2px 0 4px; }
.fcard--chart em { display: block; position: static; padding: 0; background: none; text-align: start; font-size: 12px; font-style: normal; font-weight: 600; letter-spacing: 0; color: var(--green); }
.fc-donut { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.fc-donut svg { width: 72px; height: 72px; flex: none; transform: rotate(-90deg); }
.fc-donut ul { display: grid; gap: 4px; font-size: 12px; }
.fc-donut li { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.fc-donut li i { width: 8px; height: 8px; border-radius: 50%; }
[data-theme="dark"] .fcard--chart { border-color: var(--line); background: var(--d-surface); color: var(--d-text); }

/* ---------- Why bento (absorbs fees, security and digital fiat) ---------- */
.why { grid-template-columns: repeat(4, 1fr); }
.why .why__lead { grid-column: span 2; }
.why__wide { grid-column: span 2; display: flex; align-items: center; gap: 18px; scroll-margin-top: 110px; }
.why__wide .why__ic { margin-bottom: 0; flex: none; }
.why__wide > div { flex: 1; }
.why__wide .link { flex: none; white-space: nowrap; }
.why .why__wide--dark { border: 0; color: #fff; background: radial-gradient(70% 120% at 0% 0%, rgba(0, 87, 206, .75), transparent 70%), #06042a; }
.why__wide--dark p { color: rgba(255, 255, 255, .78); }
.why__wide--dark .why__ic { background: rgba(255, 255, 255, .14); color: #b1c5ff; }
.why__wide--dark .link { color: #b1c5ff; }
[data-theme="dark"] .why .why__wide--dark { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }

/* ---------- FAQ beside its heading ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.450fr); align-items: start; gap: 64px; }
.faq-wrap__copy { position: sticky; top: 120px; }
.faq-wrap__copy h2 { font-weight: 800; line-height: 1.4; }
.faq-wrap__copy p { max-width: 380px; margin: 14px 0 24px; font-size: 18px; color: #55555e; }
.faq-wrap .faq { max-width: none; margin: 0; }
[data-theme="dark"] .faq-wrap__copy p { color: var(--d-soft); }

@media (max-width: 860px) {
  .hero__grid.only-wallet .hero__visual { height: auto; padding-bottom: 28px; }
  .hero-market { position: relative; top: auto; left: auto; width: 100%; transform: none; }
  .hero-market__rows li { grid-template-columns: auto minmax(0, 1fr) 64px auto; gap: 10px; }
  .hero-market__rows .spark { width: 64px; }
  .hero-market__price { min-width: 92px; }
  .fcard--chart { width: 176px; padding: 12px; }
  .fcard--chart b { font-size: 15px; }
  .fc-donut svg { width: 52px; height: 52px; }
  .fc-donut { gap: 8px; }
  .why { grid-template-columns: 1fr; }
  .why .why__lead, .why__wide { grid-column: auto; }
  .why__wide { flex-wrap: wrap; }
  .faq-wrap { grid-template-columns: 1fr; gap: 24px; }
  .faq-wrap__copy { position: static; }
  .faq-wrap__copy h2 { font-size: 33px; }
}

/* Log-in button inside the mobile menu */
.nav__auth { display: none; }
@media (max-width: 860px) {
  .nav.is-open .nav__auth { display: inline-flex; width: 100%; height: 48px; margin-top: 8px; }
}
