/* atropi-scope: .atropi-page-copy-trading */
/* =====================================================================================================
   COPY TRADING — page styles (template page-templates/copy-trading.php). Every selector is scoped under a
   section id of this page (#hero #facts #why #benefits #audience) or .atropi-page-copy-trading.
   Signature: the copy flow (hero) — a strategy provider's order travelling down the wires into three investor
   accounts, scaled to each allocation; the copy desk (#why) — provider cards with illustrative equity curves
   (no figures) whose point of view follows the live "For Investors / For Strategy Providers" tabs.
   Market UI (orders, symbols, curves) stays LTR in fa/ar; the layout around it mirrors.
   ===================================================================================================== */

/* ---------------------------------------------------------------- 01 · hero: the copy flow */
#hero .ac-hero-visual { max-width: 540px; }
#hero .ct-flow {
  --g: 12px;
  position: relative;
  display: grid; grid-template-rows: auto 104px auto auto;
  justify-items: center;
  padding: 6px 0 0;
}
#hero .ct-flow::before { /* soft light-field behind the board */
  content: ""; position: absolute; z-index: -1; left: 50%; top: 42%; width: 120%; aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, var(--brand-50), transparent 70%);
  pointer-events: none;
}

/* leader card */
#hero .ct-lead {
  position: relative; z-index: 2;
  width: min(100%, 392px);
  padding: 16px 16px 14px;
  border-radius: 20px;
  background: var(--surface-glass);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .6);
}
[data-theme="dark"] #hero .ct-lead { box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 80px -40px rgba(153, 117, 176, .45); }
#hero .ct-lead::after { /* the wire leaves from here */
  content: ""; position: absolute; left: 50%; bottom: -5px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 4px var(--brand-100);
}
#hero .ct-lead-top { display: flex; align-items: center; gap: 12px; }
#hero .ct-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); flex: none; }
#hero .ct-avatar img { width: 22px; height: 22px; border-radius: 5px; }
#hero .ct-lead-who { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
#hero .ct-lead-who b { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; line-height: 1.2; }
#hero .ct-lead-id { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; color: var(--muted); }
#hero .ct-live {
  margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px;
  border-radius: 999px; background: var(--bull-bg); color: var(--bull);
  font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .12em;
}
#hero .ct-live i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
html.js #hero .ct-live i { animation: ct-blink 1.6s var(--ease-io) infinite; }
@keyframes ct-blink { 50% { opacity: .25; } }

#hero .ct-curve { position: relative; margin-top: 14px; height: 92px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
#hero .ct-curve-k { position: absolute; top: 8px; inset-inline-start: 10px; z-index: 1; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
/*rtl:ignore*/#hero .ct-curve svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#hero .ct-eq-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 2 4; }
#hero .ct-eq-s0 { stop-color: var(--brand); stop-opacity: .22; }
#hero .ct-eq-s1 { stop-color: var(--brand); stop-opacity: 0; }
#hero .ct-eq-line { fill: none; stroke: var(--brand); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2; stroke-dashoffset: 0; }
#hero .ct-eq-dot { fill: var(--brand); stroke: var(--surface); stroke-width: 2; vector-effect: non-scaling-stroke; }
html.js #hero .ac-hero-visual .ct-eq-line { stroke-dashoffset: 2; transition: stroke-dashoffset 2s var(--ease-io) .35s; }
html.js #hero .ac-hero-visual .ct-eq-area, html.js #hero .ac-hero-visual .ct-eq-dot { opacity: 0; transition: opacity .8s ease 1.9s; }
html.js #hero .ac-hero-visual.is-in .ct-eq-line { stroke-dashoffset: 0; }
html.js #hero .ac-hero-visual.is-in .ct-eq-area, html.js #hero .ac-hero-visual.is-in .ct-eq-dot { opacity: 1; }

/* order chips (LTR islands) */
#hero .ct-order, #hero .ct-fol-order {
  display: flex; align-items: center; gap: 8px; /*rtl:ignore*/direction: ltr;
  font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap;
}
#hero .ct-order { margin-top: 12px; height: 38px; padding: 0 10px 0 6px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; }
#hero .ct-side { display: inline-grid; place-items: center; min-width: 40px; height: 22px; padding: 0 7px; border-radius: 6px; font-size: 10px; font-weight: 700; letter-spacing: .1em; }
#hero .ct-side.is-buy { background: var(--brand); color: #fff; }
#hero .ct-side.is-sell { background: var(--bear-bg); color: var(--bear); }
#hero .ct-sym { font-weight: 600; color: var(--ink); letter-spacing: .02em; font-family: var(--font-sans); }
#hero .ct-vol { color: var(--text); }
#hero .ct-vol b { font-weight: 600; color: var(--ink); }
/*rtl:ignore*/#hero .ct-tick { margin-left: auto; width: 34px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--brand-100), var(--brand)); transform-origin: 0 50%; transform: scaleX(0); }
/*rtl:ignore*/#hero .ct-flow.is-send .ct-tick { animation: ct-tick 1s var(--ease-out) both; }
@keyframes ct-tick { 0% { transform: scaleX(0); opacity: 1; } 70% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }

/* the wires */
/*rtl:ignore*/#hero .ct-wires { grid-row: 2; width: calc(100% - 2 * var(--g) / 3); height: 100%; overflow: visible; }
#hero .ct-wire { fill: none; stroke: var(--line-strong); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 2 5; }
#hero .ct-comet { fill: none; stroke: var(--brand); stroke-width: 2.4; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: .16 1.2; stroke-dashoffset: .16; opacity: 0; filter: drop-shadow(0 0 4px var(--brand-glow)); }
#hero .ct-flow.is-send .ct-comet { animation: ct-comet .78s cubic-bezier(.5, 0, .25, 1) both; }
#hero .ct-flow.is-send .ct-comet:nth-of-type(5) { animation-delay: .04s; }
#hero .ct-flow.is-send .ct-comet:nth-of-type(6) { animation-delay: .08s; }
@keyframes ct-comet { 0% { stroke-dashoffset: .16; opacity: 1; } 88% { opacity: 1; } 100% { stroke-dashoffset: -1; opacity: 0; } }

/* followers */
#hero .ct-fols { grid-row: 3; list-style: none; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); }
#hero .ct-fol {
  position: relative; display: flex; flex-direction: column; gap: 9px; min-width: 0;
  padding: 14px 12px 12px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md);
  transition: border-color .4s ease, box-shadow .4s ease;
}
#hero .ct-fol::before { /* inlet node */
  content: ""; position: absolute; left: 50%; top: -5px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%;
  background: var(--surface); box-shadow: 0 0 0 1.5px var(--line-strong);
  transition: background .3s ease, box-shadow .3s ease;
}
#hero .ct-fol.is-hit { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: var(--shadow-md), 0 0 0 4px var(--brand-50); }
#hero .ct-fol.is-hit::before { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
#hero .ct-fol-k { display: flex; align-items: center; gap: 8px; min-width: 0; }
#hero .ct-fol-av { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--brand-50); color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand-100); flex: none; }
#hero .ct-fol-av .ico { width: 15px; height: 15px; }
#hero .ct-fol-k b { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#hero .ct-fol-st { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--bull); }
#hero .ct-fol-st i { width: 6px; height: 6px; border-radius: 50%; background: var(--bull-vivid); box-shadow: 0 0 0 3px var(--bull-bg); }
#hero .ct-fol-alloc { display: flex; flex-direction: column; gap: 5px; }
#hero .ct-fol-alloc span { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
#hero .ct-fol-alloc i { display: block; height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
/*rtl:ignore*/#hero .ct-fol-alloc b { display: block; height: 100%; width: calc(var(--share) * 160%); border-radius: inherit; background: var(--grad-brand); transform-origin: 0 50%; }
html.js #hero .ac-hero-visual .ct-fol-alloc b { transform: scaleX(0); transition: transform 1.2s var(--ease-out) calc(1.1s + var(--i) * .12s); }
html.js #hero .ac-hero-visual.is-in .ct-fol-alloc b { transform: none; }
#hero .ct-fol-order { gap: 6px; height: 30px; padding: 0 6px; border-radius: 8px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 11px; }
#hero .ct-fol-order .ct-side { min-width: 0; height: 18px; padding: 0 5px; font-size: 9px; letter-spacing: .06em; }
#hero .ct-fol-order .ct-sym { font-size: 11px; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/*rtl:ignore*/#hero .ct-fol-order .ct-vol { margin-left: auto; font-weight: 600; color: var(--ink); }

#hero .ct-flow-note, #why .ct-desk-note {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
#hero .ct-flow-note { grid-row: 4; }
#hero .ct-flow-dot, #why .ct-flow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--bull-vivid); box-shadow: 0 0 0 3px var(--bull-bg); }
html.js #hero.ac-paused .ct-live i { animation-play-state: paused; }

/* ---------------------------------------------------------------- key facts: Persian values read RTL */
#facts .ac-fact-v .num { font-size: clamp(22px, 1.9vw, 30px); }
[dir="rtl"] #facts .ac-fact-v .num { unicode-bidi: plaintext; word-spacing: -.3em; } /* mono spaces are wide around Persian words */

/* ---------------------------------------------------------------- 02 · why: tabs + copy desk */
#why .ct-why-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(40px, 6vw, 104px); align-items: center; }
#why .chapter-head { margin-bottom: clamp(32px, 3.4vw, 44px); }
#why .chapter-head .h2 { max-width: 14ch; }

#why .ct-tabs {
  position: relative; display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
  max-width: 100%;
}
#why .ct-tab {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent;
  font: inherit; font-size: 14.5px; font-weight: 650; color: var(--muted); cursor: pointer;
  transition: color .3s ease;
}
#why .ct-tab .ico { color: currentColor; opacity: .8; }
#why .ct-tab:hover { color: var(--ink); }
#why .ct-tab.is-on { color: var(--ink); }
#why .ct-tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/*rtl:ignore*/#why .ct-tabs-ind {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: var(--w, 0px);
  border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  transform: translateX(var(--x, 0px)); transition: transform .55s var(--ease-out), width .55s var(--ease-out);
}
html:not(.js) #why .ct-tabs-ind { display: none; }
html:not(.js) #why .ct-tab.is-on { background: var(--surface); box-shadow: var(--shadow-sm); }

#why .ct-panels { position: relative; margin-top: 26px; }
#why .ct-panel { outline: none; }
#why .ct-panel:focus-visible { outline: 2px solid var(--brand); outline-offset: 6px; border-radius: 8px; }
#why .ct-panel-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 6px; }
html.js #why .ct-panel-k { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html:not(.js) #why .ct-panel + .ct-panel { margin-top: 28px; }
html.js #why .ct-panel[hidden] { display: none; }
#why .ct-points { list-style: none; padding: 0; }
#why .ct-point {
  position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) 28px; align-items: center; gap: 14px;
  padding: 18px 0; border-top: 1px solid var(--line);
}
#why .ct-point:last-child { border-bottom: 1px solid var(--line); }
#why .ct-point::before { content: ""; position: absolute; top: -1px; inset-inline-start: 0; width: 0; height: 1px; background: var(--brand); transition: width .8s var(--ease-out); }
#why .ct-point:hover::before { width: 100%; }
#why .ct-point-n { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
#why .ct-point-t { font-size: clamp(16.5px, 1.3vw, 19px); line-height: 1.4; font-weight: 600; letter-spacing: -.01em; color: var(--ink); text-wrap: pretty; }
#why .ct-point-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--bull-bg); color: var(--bull); }
#why .ct-point-ico .ico { stroke-width: 2.2; }
html.js #why .ct-panel.is-on .ct-point { animation: ct-rise .7s var(--ease-out) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes ct-rise { from { opacity: 0; transform: translate3d(0, 12px, 0); } to { opacity: 1; transform: none; } }

/* desk */
#why .ct-desk-wrap { display: flex; flex-direction: column; align-items: center; min-width: 0; }
#why .ct-desk {
  position: relative; width: 100%;
  border-radius: var(--r-xl); padding: clamp(16px, 1.8vw, 24px);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  overflow: hidden; isolation: isolate;
}
#why .ct-desk::before { /* chart paper */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(90% 80% at 50% 30%, #000 20%, transparent 80%); mask-image: radial-gradient(90% 80% at 50% 30%, #000 20%, transparent 80%);
}
[data-theme="dark"] #why .ct-desk { background: var(--surface); box-shadow: var(--shadow-lg), 0 40px 120px -60px rgba(153, 117, 176, .5); }
/* the investor view is in flow (it sizes the desk); the provider view overlays it */
html.js #why .ct-desk-view { transition: opacity .6s var(--ease-out), transform .6s var(--ease-out), visibility 0s linear .6s; }
html.js #why .ct-desk-pro { position: absolute; inset: clamp(16px, 1.8vw, 24px); }
html.js #why .ct-desk:not([data-view="investors"]) .ct-desk-inv,
html.js #why .ct-desk:not([data-view="providers"]) .ct-desk-pro { opacity: 0; visibility: hidden; transform: translate3d(0, 14px, 0) scale(.985); pointer-events: none; }
html.js #why .ct-desk[data-view="investors"] .ct-desk-inv,
html.js #why .ct-desk[data-view="providers"] .ct-desk-pro { transition-delay: .12s, .12s, 0s; }
html:not(.js) #why .ct-desk-pro { margin-top: 24px; min-height: 380px; position: relative; }

/* investor view: provider cards */
#why .ct-desk-inv { display: flex; flex-direction: column; gap: 12px; min-height: 420px; }
#why .ct-cards { list-style: none; padding: 0; display: grid; gap: 10px; }
#why .ct-card {
  --c: var(--brand);
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "top top" "curve curve" "ctl ctl";
  gap: 8px 12px; padding: 12px 14px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: border-color .5s ease, background-color .5s ease;
}
#why .ct-card[data-state="paused"] { --c: var(--gold); }
#why .ct-card[data-state="stopped"] { --c: var(--faint); background: var(--surface-2); }
#why .ct-card-top { grid-area: top; display: flex; align-items: center; gap: 10px; min-width: 0; }
#why .ct-card-mono { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 11px; font-weight: 600; color: var(--ink); flex: none; }
#why .ct-card-who { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
#why .ct-card-who b { font-size: 14px; font-weight: 700; color: var(--ink); }
#why .ct-card-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--brand-50); color: var(--brand-ink); font-size: 11px; font-weight: 600; }
#why .ct-card-st { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 11.5px; font-weight: 650; color: var(--ink); white-space: nowrap; }
#why .ct-card-st i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); transition: background .4s ease; }
#why .ct-card[data-state="copying"] .ct-card-st i { background: var(--bull-vivid); box-shadow: 0 0 0 3px var(--bull-bg); }
#why .ct-card-st > span { display: none; }
#why .ct-card[data-state="copying"] .ct-st-copying, #why .ct-card[data-state="paused"] .ct-st-paused, #why .ct-card[data-state="stopped"] .ct-st-stopped { display: inline; }
/*rtl:ignore*/#why .ct-card-curve { grid-area: curve; width: 100%; height: 52px; overflow: visible; }
#why .ct-cc-area { fill: var(--c); opacity: .08; transition: fill .5s ease, opacity .5s ease; }
#why .ct-cc-line { fill: none; stroke: var(--c); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2; stroke-dashoffset: 0; transition: stroke .5s ease; }
#why .ct-cc-dot { fill: var(--c); stroke: var(--surface); stroke-width: 2; vector-effect: non-scaling-stroke; transition: fill .5s ease; }
#why .ct-card[data-state="stopped"] .ct-cc-line { stroke-dasharray: .01 .02; }
html.js #why .ct-desk-wrap:not(.is-in) .ct-cc-line { stroke-dashoffset: 2; }
html.js #why .ct-desk-wrap .ct-cc-line { transition: stroke-dashoffset 1.8s var(--ease-io) calc(.3s + var(--i) * .18s), stroke .5s ease; }
#why .ct-card-ctl { grid-area: ctl; display: flex; gap: 6px; }
#why .ct-ctl { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 7px; font-size: 11px; font-weight: 600; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .35s ease, color .35s ease, box-shadow .35s ease; }
#why .ct-card[data-state="copying"] .ct-ctl-start { background: var(--bull-bg); color: var(--bull); box-shadow: none; }
#why .ct-card[data-state="paused"] .ct-ctl-pause { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); box-shadow: none; }
#why .ct-card[data-state="stopped"] .ct-ctl-stop { background: var(--bear-bg); color: var(--bear); box-shadow: none; }
#why .ct-card.is-change { animation: ct-pop .6s var(--ease-out); }
@keyframes ct-pop { 40% { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); } }

#why .ct-port { margin-top: auto; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
#why .ct-port-k { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 650; color: var(--ink); }
#why .ct-port-k .ico { color: var(--brand); }
#why .ct-port-bar { display: flex; gap: 3px; height: 8px; margin-top: 10px; }
#why .ct-port-bar i { flex: var(--w) 1 0; border-radius: 4px; background: var(--brand); transition: flex-grow .8s var(--ease-out), opacity .5s ease; }
#why .ct-port-bar i:nth-child(2) { background: var(--violet); }
#why .ct-port-bar i:nth-child(3) { background: var(--cyan); }
#why .ct-port-bar i.is-off { opacity: .25; }

/* provider view: hub → following */
#why .ct-desk-pro { display: grid; place-items: center; }
#why .ct-orbit { position: relative; width: min(100%, 420px); aspect-ratio: 1; }
/*rtl:ignore*/#why .ct-orbit-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#why .ct-orbit-ring { fill: none; stroke: var(--line-strong); stroke-width: 1.2; stroke-dasharray: 2 5; }
#why .ct-orbit-ring.is-inner { stroke: var(--line); }
#why .ct-orbit-link { fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: .035 .06; stroke-opacity: .7; }
#why .ct-orbit-node { fill: var(--surface); stroke: var(--brand); stroke-width: 1.5; }
html.js #why .ct-orbit-link { stroke-dashoffset: 0; opacity: 0; }
html.js #why .ct-orbit-node { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.3); }
html.js #why .ct-desk[data-view="providers"] .ct-orbit-node { animation: ct-node-in .6s var(--ease-spring) both; animation-delay: calc(.25s + var(--k) * .11s); }
html.js #why .ct-desk[data-view="providers"] .ct-orbit-link { animation: ct-link-in .5s ease both, ct-flow-out 2.4s linear infinite; animation-delay: calc(.2s + var(--k) * .11s), calc(.8s + var(--k) * .11s); }
@keyframes ct-node-in { to { opacity: 1; transform: none; } }
@keyframes ct-link-in { to { opacity: 1; } }
@keyframes ct-flow-out { to { stroke-dashoffset: -.38; } }
html.js #why:not(.is-live) .ct-orbit-link { animation-play-state: paused; }
#why .ct-hub {
  position: absolute; left: 50%; top: 50%; width: 186px; transform: translate(-50%, -50%);
  padding: 12px 12px 10px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg), 0 0 0 6px var(--brand-50);
}
#why .ct-hub-k { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink); line-height: 1.25; }
#why .ct-hub-k img { width: 18px; height: 18px; border-radius: 5px; flex: none; }
#why .ct-hub-k b { font-weight: 700; }
/*rtl:ignore*/#why .ct-hub-curve { display: block; width: 100%; height: 44px; margin-top: 8px; overflow: visible; }
#why .ct-hub-curve path { fill: none; stroke: var(--brand); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; }
#why .ct-hub-tool { margin-top: 6px; display: flex; justify-content: flex-end; }
#why .ct-hub-tool span { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--brand-50); color: var(--brand-ink); font-size: 10.5px; font-weight: 600; }
#why .ct-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border-radius: 999px; background: var(--surface-float); border: 1px solid var(--line); box-shadow: var(--shadow-md);
  font-size: 12px; font-weight: 650; color: var(--ink); white-space: nowrap;
}
#why .ct-chip .ico { color: var(--brand); }
#why .ct-chip-fol { top: 4%; inset-inline-end: -2%; }
#why .ct-chip-share { bottom: 6%; inset-inline-start: -2%; }
#why .ct-chip-share .ico { color: var(--bull); }
html.js #why .ct-chip { opacity: 0; transform: translate3d(0, 8px, 0); transition: opacity .6s ease, transform .6s var(--ease-out); }
html.js #why .ct-desk[data-view="providers"] .ct-chip { opacity: 1; transform: none; transition-delay: 1.1s; }
html.js #why .ct-desk[data-view="providers"] .ct-chip-share { transition-delay: 1.35s; }
#why .ct-desk-note { margin-top: 16px; }

/* ---------------------------------------------------------------- 04 · benefits: micro-visuals */
#benefits .ct-bento .ac-feat-visual { margin-top: auto; }
#benefits .ct-m { position: relative; height: 112px; overflow: hidden; color: var(--brand); }
#benefits .is-ink .ct-m { color: #6FA6FF; }
:root[data-theme="dark"] #benefits .is-ink .ct-m { color: #B69CC7; } /* brand Night */
#benefits .ct-m svg { display: block; overflow: visible; }

/* monitor: equity line + copied-trade rows */
#benefits .ct-m-monitor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 42%); align-items: end; gap: 14px; height: 132px; padding: 0 clamp(22px, 2.2vw, 30px) 18px; }
/*rtl:ignore*/#benefits .ct-m-mon-chart { width: 100%; height: 100%; }
#benefits .ct-m-grid { stroke: currentColor; stroke-opacity: .14; stroke-dasharray: 2 5; vector-effect: non-scaling-stroke; fill: none; }
#benefits .ct-m-area { fill: currentColor; opacity: .1; }
#benefits .ct-m-line { fill: none; stroke: currentColor; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 2; stroke-dashoffset: 0; }
#benefits .ct-m-dot { fill: currentColor; }
html.js #benefits .ac-feats-i:not(.is-in) .ct-m-line { stroke-dashoffset: 2; }
html.js #benefits .ct-m-line { transition: stroke-dashoffset 2s var(--ease-io) .3s; }
#benefits .ct-m-rows { list-style: none; padding: 0; display: grid; gap: 6px; /*rtl:ignore*/direction: ltr; }
#benefits .ct-m-rows li { display: grid; grid-template-columns: 8px 54px minmax(0, 1fr) 14px; align-items: center; gap: 8px; height: 26px; padding: 0 8px; border-radius: 8px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); font-family: var(--font-mono); font-size: 10.5px; }
#benefits .ac-feat:not(.is-ink) .ct-m-rows li { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
#benefits .ct-m-rows i { width: 7px; height: 7px; border-radius: 50%; }
#benefits .ct-m-rows i.is-buy { background: var(--brand-400); }
#benefits .ct-m-rows i.is-sell { background: var(--bear-vivid); }
#benefits .ct-m-rows b { font-weight: 600; color: #fff; letter-spacing: .02em; }
#benefits .ac-feat:not(.is-ink) .ct-m-rows b { color: var(--ink); }
#benefits .ct-m-bar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
#benefits .ac-feat:not(.is-ink) .ct-m-bar { background: var(--surface-3); }
/*rtl:ignore*/#benefits .ct-m-bar em { display: block; height: 100%; width: 100%; background: currentColor; transform-origin: 0 50%; transform: scaleX(1); }
#benefits .ct-m-ok { width: 14px; height: 14px; border-radius: 50%; background: var(--bull-vivid); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Ccircle cx='7' cy='7' r='7'/%3E%3C/svg%3E"); position: relative; }
#benefits .ct-m-ok::after { content: ""; position: absolute; left: 4px; top: 3.4px; width: 5px; height: 3px; border-left: 1.6px solid #fff; border-bottom: 1.6px solid #fff; transform: rotate(-45deg); }
html.js #benefits.is-live .ct-m-bar em { animation: ct-bar 3.6s var(--ease-io) infinite; animation-delay: calc(var(--r) * .5s); }
html.js #benefits.is-live .ct-m-ok { animation: ct-ok 3.6s var(--ease-out) infinite; animation-delay: calc(var(--r) * .5s); }
@keyframes ct-bar { 0% { transform: scaleX(0); } 35%, 100% { transform: scaleX(1); } }
@keyframes ct-ok { 0%, 30% { transform: scale(0); } 42%, 100% { transform: scale(1); } }

/* mt5: one order, executed seamlessly */
#benefits .ct-m-mt5 { display: flex; align-items: center; justify-content: center; height: 104px; }
/*rtl:ignore*/#benefits .ct-m-mt5 svg { position: absolute; left: 50%; top: 50%; width: 300px; height: 90px; transform: translate(-50%, -50%); }
#benefits .ct-m-track { stroke: color-mix(in srgb, var(--brand) 35%, var(--line-strong)); stroke-width: 1.5; stroke-dasharray: 2 5; fill: none; }
#benefits .ct-m-pulse { stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; fill: none; stroke-dasharray: .18 1.2; stroke-dashoffset: .18; filter: drop-shadow(0 0 4px var(--brand-glow)); opacity: 0; }
html.js #benefits.is-live .ct-m-pulse { animation: ct-pulse 2.6s cubic-bezier(.5, 0, .25, 1) infinite; }
@keyframes ct-pulse { 0% { stroke-dashoffset: .18; opacity: 1; } 55% { stroke-dashoffset: -1; opacity: 1; } 56%, 100% { stroke-dashoffset: -1; opacity: 0; } }
#benefits .ct-m-end { display: none; }
/*rtl:ignore*/#benefits .ct-m-node { position: absolute; z-index: 1; top: 50%; display: grid; place-items: center; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-sm); color: var(--brand); }
/*rtl:ignore*/#benefits .ct-m-node.is-from { left: calc(50% - 138px); }
/*rtl:ignore*/#benefits .ct-m-node.is-to { left: calc(50% + 102px); }
#benefits .ct-m-badge { position: relative; z-index: 1; display: inline-grid; place-items: center; height: 34px; padding: 0 14px; border-radius: 10px; background: var(--btn-bg); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .04em; box-shadow: 0 10px 24px -10px var(--brand-glow); }
html.js #benefits.is-live .ct-m-badge { animation: ct-badge 2.6s var(--ease-out) infinite; }
@keyframes ct-badge { 0%, 22% { transform: scale(1); } 30% { transform: scale(1.08); } 44%, 100% { transform: scale(1); } }

/* globe */
#benefits .ct-m-globe { height: 112px; display: flex; justify-content: center; align-items: flex-end; }
#benefits .ct-m-globe svg { width: min(100%, 240px); height: auto; }
#benefits .ct-m-sphere { fill: none; stroke: currentColor; stroke-opacity: .2; stroke-width: 1; }
#benefits .ct-m-city { fill: currentColor; opacity: .35; transform-box: fill-box; transform-origin: center; }
html.js #benefits.is-live .ct-m-city { animation: ct-city 3.2s var(--ease-out) infinite; animation-delay: calc(var(--k) * .42s); }
@keyframes ct-city { 0%, 100% { opacity: .35; transform: scale(1); } 12% { opacity: 1; transform: scale(1.5); } 30% { opacity: .8; transform: scale(1); } }
#benefits .ct-m-arc { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .8; }
html.js #benefits.is-live .ct-m-arc { animation: ct-arc 3.2s var(--ease-io) infinite; animation-delay: calc(var(--k, 0) * .5s); }
html:not(.js) #benefits .ct-m-arc { stroke-dashoffset: 0; }
@keyframes ct-arc { 0% { stroke-dashoffset: 1; } 45%, 70% { stroke-dashoffset: 0; opacity: .8; } 100% { stroke-dashoffset: 0; opacity: 0; } }

/* beginner: observe → copy */
#benefits .ct-m-beginner { display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px; align-items: center; gap: 12px; height: 104px; padding: 0 clamp(22px, 2.2vw, 30px) 10px; }
/*rtl:ignore*/#benefits .ct-m-beginner svg { width: 100%; height: 70px; }
#benefits .ct-m-ghost { fill: none; stroke: color-mix(in srgb, var(--brand) 40%, var(--line-strong)); stroke-width: 2; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
#benefits .ct-m-trace { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 2; stroke-dashoffset: 0; }
html.js #benefits.is-live .ct-m-trace { animation: ct-trace 4.2s var(--ease-io) infinite; }
@keyframes ct-trace { 0% { stroke-dashoffset: 2; } 70%, 88% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
#benefits .ct-m-eye, #benefits .ct-m-copy { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); }
#benefits .ct-m-copy { background: var(--brand-50); color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand-100); }

/* diversify (fa): portfolio ring */
#benefits .ct-m-diversify { display: grid; place-items: center; height: 120px; }
#benefits .ct-m-diversify svg { width: 108px; height: 108px; transform: rotate(-90deg); }
#benefits .ct-m-ring { fill: none; stroke-width: 12; stroke-linecap: butt; }
#benefits .ct-m-ring.is-a { stroke: var(--brand); stroke-dasharray: 42 58; stroke-dashoffset: 0; }
#benefits .ct-m-ring.is-b { stroke: var(--violet); stroke-dasharray: 32 68; stroke-dashoffset: -44; }
#benefits .ct-m-ring.is-c { stroke: var(--cyan); stroke-dasharray: 20 80; stroke-dashoffset: -78; }
html.js #benefits.is-live .ct-m-diversify svg { animation: ct-spin 18s linear infinite; }
@keyframes ct-spin { to { transform: rotate(270deg); } }

/* flexible (fa): volume slider */
#benefits .ct-m-flexible { display: flex; flex-direction: column; justify-content: center; gap: 12px; height: 104px; padding: 0 clamp(22px, 2.2vw, 30px) 8px; /*rtl:ignore*/direction: ltr; }
#benefits .ct-m-slider { position: relative; height: 6px; border-radius: 6px; background: var(--surface-3); }
/*rtl:ignore*/#benefits .ct-m-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: inherit; background: var(--grad-brand); transform-origin: 0 50%; transform: scaleX(.42); }
/*rtl:ignore*/#benefits .ct-m-knob { position: absolute; inset: 0; transform: translateX(42%); }
/*rtl:ignore*/#benefits .ct-m-knob::after { content: ""; position: absolute; top: 50%; left: 0; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 2px var(--brand), var(--shadow-md); }
#benefits .ct-m-ticks { display: flex; justify-content: space-between; }
#benefits .ct-m-ticks i { width: 1px; height: 8px; background: var(--line-strong); }
/*rtl:ignore*/html.js #benefits.is-live .ct-m-fill { animation: ct-fill 5s var(--ease-io) infinite; }
/*rtl:ignore*/html.js #benefits.is-live .ct-m-knob { animation: ct-knob 5s var(--ease-io) infinite; }
@keyframes ct-fill { 0%, 100% { transform: scaleX(.42); } 40% { transform: scaleX(.78); } 70% { transform: scaleX(.24); } }
/*rtl:begin:ignore*/
@keyframes ct-knob { 0%, 100% { transform: translateX(42%); } 40% { transform: translateX(78%); } 70% { transform: translateX(24%); } }
/*rtl:end:ignore*/

/* ---------------------------------------------------------------- 05 · audience: follower → provider */
#audience .chapter-head { margin-bottom: clamp(32px, 4vw, 56px); }
#audience .ct-spectrum { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; margin-bottom: 22px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
#audience .ct-spec-end { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
#audience .ct-spec-end .ico { color: var(--brand); }
#audience .ct-spec-end.is-lead { color: var(--ink); }
#audience .ct-spec-line { position: relative; height: 2px; border-radius: 2px; background: var(--line-strong); overflow: hidden; }
/*rtl:ignore*/#audience .ct-spec-fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--brand-100), var(--brand) 70%, var(--violet)); transform-origin: 0 50%; transform: scaleX(1); }
html.js #audience .ct-spectrum:not(.is-in) .ct-spec-fill { transform: scaleX(0); }
html.js #audience .ct-spec-fill { transition: transform 1.6s var(--ease-io) .2s; }
#audience .ct-spec-pulse { position: absolute; top: -2px; bottom: -2px; inset-inline-end: 0; width: 64px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .95), transparent); opacity: 0; }
html.js #audience.is-live .ct-spectrum.is-in .ct-spec-pulse { animation: ct-spec 3.2s var(--ease-io) 1.8s infinite; }
@keyframes ct-spec { 0% { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateX(-1400%); opacity: 0; } }
[data-theme="dark"] #audience .ct-spec-pulse { background: linear-gradient(90deg, transparent, rgba(229, 224, 231, .9), transparent); }
#audience .ct-aud-grid .ac-feats-i:last-child .ac-feat { border-color: color-mix(in srgb, var(--brand) 32%, var(--line)); }
#audience .ct-aud-grid .ac-feats-i:last-child .ac-feat-ico { background: var(--btn-bg); color: #fff; box-shadow: 0 10px 24px -10px var(--brand-glow); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1199px) {
  #why .ct-why-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
}
@media (max-width: 1023px) {
  #why .ct-why-grid { grid-template-columns: minmax(0, 1fr); }
  #why .chapter-head .h2 { max-width: none; }
  #why .ct-desk-wrap { width: 100%; max-width: 620px; justify-self: center; }
}
@media (max-width: 640px) {
  #hero .ct-flow { grid-template-rows: auto 76px auto auto; --g: 8px; }
  #hero .ct-lead { padding: 14px 12px 12px; }
  #hero .ct-curve { height: 78px; }
  #hero .ct-fol { padding: 12px 9px 10px; gap: 8px; border-radius: 14px; }
  #hero .ct-fol-k b { font-size: 12px; }
  #hero .ct-fol-av { display: none; }
  #hero .ct-fol-order { padding: 0 5px; gap: 4px; font-size: 10px; }
  #hero .ct-fol-order .ct-side { display: none; }
  #why .ct-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; border-radius: 16px; }
  #why .ct-tab { justify-content: center; min-height: 52px; padding: 6px 10px; border-radius: 12px; font-size: 13.5px; line-height: 1.25; text-align: center; }
  #why .ct-tab .ico { display: none; }
  #why .ct-tabs-ind { border-radius: 12px; }
  #why .ct-point { grid-template-columns: 26px minmax(0, 1fr) 24px; gap: 10px; padding: 15px 0; }
  #why .ct-point-ico { width: 24px; height: 24px; }
  #why .ct-card-ctl { display: none; }
  #why .ct-chip { font-size: 11px; height: 28px; padding: 0 10px; }
  #benefits .ct-m-monitor { grid-template-columns: minmax(0, 1fr); height: auto; }
  #benefits .ct-m-mon-chart { height: 84px; }
  #audience .ct-spectrum { font-size: 10px; gap: 10px; letter-spacing: .06em; }
}
@media (max-width: 400px) {
  #hero .ct-fol-alloc span { font-size: 8.5px; letter-spacing: .04em; }
  #hero .ct-lead-id { display: none; }
}

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  #hero .ct-comet, #hero .ct-tick { animation: none !important; opacity: 0; }
  #hero .ct-live i { animation: none !important; }
  #why .ct-orbit-link, #why .ct-orbit-node, #why .ct-point { animation: none !important; opacity: 1; transform: none; }
  #benefits .ct-m * , #benefits .ct-m svg { animation: none !important; }
  #benefits .ct-m-arc { stroke-dashoffset: 0; }
  #audience .ct-spec-pulse { display: none; }
}

/* ---------------------------------------------------------------- refinements */
/* the globe fills a large (ink) bento card */
#benefits .is-lg .ct-m-globe { height: clamp(180px, 20vw, 260px); }
#benefits .is-lg .ct-m-globe svg { width: min(100%, 470px); }
/* observe → copy reads right-to-left in fa/ar (decorative line, not data) */
/*rtl:ignore*/[dir="rtl"] #benefits .ct-m-beginner svg { transform: scaleX(-1); }

/* ---------------------------------------------------------------- RTL (fa · ar) */
/* the equity curve is an LTR chart that ends high on the right: in fa/ar park its label on the low (left)
   side so it never sits on the line */
/*rtl:ignore*/[dir="rtl"] #hero .ct-curve-k { inset-inline-start: auto; inset-inline-end: 10px; }

/* ---------------------------------------------------------------- ru localisation */
/* "Почему выбирают копитрейдинг Atropi?" — the first line missed the split column by a few px at 1280–1440 and the
   title fell into four one-word lines; ~7% smaller keeps it on three lines like the English one. */
html[lang^="ru"] .atropi-page-copy-trading #why .ct-why-copy .h2 { font-size: clamp(34px, 3.9vw, 56px); }
