/* ============================================================
   cash-income hero — bespoke "currency → Rial" conversion hero
   for /نقد-کردن-درآمد-ارزی-در-تراپی. Uses TraPay brand tokens only
   (var(--brand*), --accent, --ink, --muted, --hair). No hardcoded hex
   except neutral whites/darks for surfaces. RTL-first.
   ============================================================ */

.ci-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--brand-50) 0%, #fff 62%);
    padding-block: 64px 88px;
}
@media (min-width: 1024px) { .ci-hero { padding-block: 96px 112px; } }

/* ---- background layers ---- */
.ci-hero__bg { position: absolute; inset: 0; pointer-events: none; color: var(--brand); }
.ci-hero__grid { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .16; }
.ci-hero__glow {
    position: absolute;
    border-radius: 9999px;
    filter: blur(90px);
}
.ci-hero__glow--brand {
    width: 520px; height: 520px;
    background: var(--brand);
    opacity: .20;
    inset-inline-start: -160px; top: -180px;
}
.ci-hero__glow--amber {
    width: 420px; height: 420px;
    background: var(--accent);
    opacity: .16;
    inset-inline-end: -140px; bottom: -160px;
}

/* ---- split layout ---- */
.ci-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 72rem;
    margin-inline: auto;
    padding-inline: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 44px;
    align-items: center;
}
@media (min-width: 992px) {
    .ci-hero__inner { grid-template-columns: 1.05fr .95fr; gap: 32px; }
}

/* ---- copy column ---- */
.ci-hero__copy { text-align: center; }
@media (min-width: 992px) { .ci-hero__copy { text-align: start; } }

.ci-hero .svc-crumbs { justify-content: center; }
@media (min-width: 992px) { .ci-hero .svc-crumbs { justify-content: flex-start; } }

.ci-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 9999px;
    padding: 7px 16px;
    background: #fff;
    color: var(--brand);
    font-weight: 600;
    font-size: .8125rem;
    box-shadow: 0 1px 2px rgba(13,62,126,.08);
    border: 1px solid color-mix(in srgb, var(--brand) 14%, transparent);
}
.ci-eyebrow__dot {
    width: 7px; height: 7px; border-radius: 9999px;
    background: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}

.ci-hero__title {
    margin-top: 18px;
    color: var(--ink);
    line-height: 1.3;
    letter-spacing: -.01em;
    overflow-wrap: anywhere;
}
@media (max-width: 640px) { .ci-hero__title { font-size: 2rem; line-height: 1.45; } }

.ci-hero__lead {
    margin-top: 16px;
    margin-inline: auto;
    max-width: 40rem;
    color: var(--muted);
    line-height: 2;
}
@media (min-width: 992px) { .ci-hero__lead { margin-inline: 0; } }

.ci-hero__actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
@media (min-width: 992px) { .ci-hero__actions { justify-content: flex-start; } }

/* trust chips under the CTAs */
.ci-hero__chips {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    justify-content: center;
}
@media (min-width: 992px) { .ci-hero__chips { justify-content: flex-start; } }
.ci-hero__chips span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .8125rem;
    color: var(--ink);
    opacity: .85;
}
.ci-hero__chips svg { width: 16px; height: 16px; color: var(--green); flex: none; }

/* ============================================================
   CONVERSION STAGE — five currency coins orbit a rial payout card
   ============================================================ */
.ci-hero__stage {
    display: flex;
    align-items: center;
    justify-content: center;
}
.ci-orbit {
    position: relative;
    width: 320px;
    height: 320px;
    max-width: 100%;
}
@media (max-width: 400px) { .ci-orbit { width: 280px; height: 300px; } }

/* central payout card */
.ci-payout {
    position: absolute;
    inset-inline-start: 50%;
    top: 50%;
    transform: translate(50%, -50%);           /* RTL-safe centering */
    width: 208px;
    padding: 22px 20px;
    background: linear-gradient(145deg, var(--brand), var(--brand-600, #1f3d64));
    border-radius: 22px;
    color: #fff;
    text-align: center;
    box-shadow: 0 26px 60px -22px color-mix(in srgb, var(--brand) 70%, transparent);
    z-index: 3;
}
.ci-payout__tag {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 9999px;
    background: rgba(255,255,255,.16);
    color: #fff;
}
.ci-payout__amount {
    display: block;
    margin-top: 12px;
    font-family: var(--tp-font-heading, 'Estedad','Vazirmatn',sans-serif);
    font-weight: 800;
    font-size: 1.55rem;
    line-height: 1.2;
    color: #fff;
}
.ci-payout__amount small { font-size: .8rem; font-weight: 600; opacity: .9; }
.ci-payout__note {
    display: block;
    margin-top: 8px;
    font-size: .72rem;
    color: rgba(255,255,255,.78);
    line-height: 1.7;
}
.ci-payout__pulse {
    position: absolute;
    inset: 0;
    border-radius: 22px;
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent);
    animation: ci-pulse 2.6s var(--tp-ease, cubic-bezier(.4,0,.2,1)) infinite;
    pointer-events: none;
}
@keyframes ci-pulse {
    0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); }
    70%  { box-shadow: 0 0 0 18px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

/* orbiting currency coins */
.ci-coin {
    position: absolute;
    width: 58px; height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 9999px;
    border: 1px solid var(--hair, #e5eaf1);
    box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--brand) 40%, transparent);
    z-index: 2;
    animation: ci-float 5s ease-in-out infinite;
}
.ci-coin img { width: 30px; height: 30px; object-fit: contain; }
.ci-coin::after {                 /* flow line toward the center card */
    content: '';
    position: absolute;
    inset-inline-start: 50%;
    top: 50%;
    width: 2px;
    height: 46px;
    background: linear-gradient(to bottom, color-mix(in srgb, var(--brand) 45%, transparent), transparent);
    transform-origin: top center;
    z-index: -1;
    opacity: .5;
}

/* place five coins around the card */
.ci-coin--1 { top: 2%;  inset-inline-end: 24%; animation-delay: 0s;   }
.ci-coin--2 { top: 22%; inset-inline-end: -2%; animation-delay: .5s;  }
.ci-coin--3 { bottom: 20%; inset-inline-end: 0%; animation-delay: 1s; }
.ci-coin--4 { bottom: 1%; inset-inline-end: 26%; animation-delay: 1.5s; }
.ci-coin--5 { top: 44%; inset-inline-end: 78%; animation-delay: 2s;   }

@keyframes ci-float {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
    .ci-coin, .ci-payout__pulse { animation: none; }
}

/* hide the busy orbit on very small phones — show a compact payout card only */
@media (max-width: 560px) {
    .ci-coin::after { display: none; }
    .ci-orbit { width: 300px; height: 280px; }
}

/* ---------------- dark mode ---------------- */
.dark .ci-hero { background: linear-gradient(160deg, #0b1220 0%, #0f172a 60%); }
.dark .ci-hero__title { color: #fff; }
.dark .ci-hero__lead { color: #94a3b8; }
.dark .ci-eyebrow { background: #0f172a; color: #cfe0ff; border-color: #1f2937; }
.dark .ci-hero__chips span { color: #e5e7eb; }
.dark .ci-coin { background: #0f172a; border-color: #1f2937; }
