/* Homepage: track record in numbers (sections/resumeStats.blade.php). Text >= 13px. */
.rs-section { position: relative; padding: 90px 0; background: #fff; color: #10155c; direction: rtl; text-align: right; overflow: hidden; }
.rs-section *, .rs-section *::before, .rs-section *::after { box-sizing: border-box; }
.rs-section:not(.is-live) *, .rs-section:not(.is-live) *::before, .rs-section:not(.is-live) *::after { animation-play-state: paused !important; }
.rs-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.rs-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; margin-bottom: 14px; border-radius: 30px; background: #e3f8ef; color: #12806a; font-size: 13px; font-weight: 600; }
.rs-section h2 { margin: 0 0 10px; color: #10155c; font-size: clamp(26px, 2.5vw, 38px); font-weight: 800; line-height: 1.6; letter-spacing: -.5px; }
.rs-section h2 span { color: #2fb889; }
.rs-head p { margin: 0; color: #6f7693; font-size: 15px; line-height: 2; }

.rs-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, auto); gap: 18px; }
.rs-years { position: relative; grid-row: 1 / 3; display: flex; flex-direction: column; justify-content: flex-end; min-height: 340px; padding: 30px; border-radius: 24px; background: radial-gradient(ellipse at 20% 15%, #2b2a8a, transparent 60%), #10155c; color: #fff; overflow: hidden; }
.rs-orbit { position: absolute; top: -18%; left: -18%; width: 78%; aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed #ffffff2e; animation: rs-spin 26s linear infinite; }
.rs-orbit--b { top: -2%; left: -2%; width: 48%; border-color: #ffffff3d; animation-duration: 16s; animation-direction: reverse; }
.rs-orbit i { position: absolute; top: 12%; left: 12%; width: 14px; height: 14px; border-radius: 50%; background: #f2c21a; box-shadow: 0 0 0 6px #f2c21a2e; }
.rs-orbit--b i { background: #42d3a1; box-shadow: 0 0 0 6px #42d3a12e; }
.rs-years-num { position: relative; color: #fff; font-size: clamp(64px, 6vw, 92px); font-weight: 800; line-height: 1; }
.rs-years-label { position: relative; margin: 8px 0 12px; color: #a796ff; font-size: 20px; font-weight: 800; }
.rs-years p { position: relative; margin: 0; color: #c8cdee; font-size: 14px; line-height: 2; }

.rs-tone-violet { --t: #7057e8; --w: #f1eeff; }
.rs-tone-coral { --t: #f45158; --w: #ffeff0; }
.rs-tone-mint { --t: #2fb889; --w: #e8f9f2; }
.rs-tone-yellow { --t: #d9a90c; --w: #fff7dc; }
.rs-card { display: flex; flex-direction: column; min-width: 0; padding: 22px; border-radius: 24px; background: linear-gradient(140deg, var(--w), #fff 75%); border: 1px solid #eef0f8; transition: transform .25s, box-shadow .25s; }
.rs-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -28px #3b4f9a88; }
.rs-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.rs-icon { display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; background: var(--t); color: #fff; font-size: 20px; }
.rs-count { color: #10155c; font-size: clamp(34px, 3vw, 46px); font-weight: 800; line-height: 1.1; }
.rs-count span { display: inline-block; min-width: 2ch; }
.rs-label { margin-top: 8px; color: #6f7693; font-size: 14px; font-weight: 600; line-height: 1.8; }

/* Mini visuals */
.rs-viz { width: 96px; height: 44px; }
.rs-viz--sites { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.rs-viz--sites i { border-radius: 4px; background: #e1dcfb; animation: rs-tile 4s calc(var(--k) * .18s) infinite; }
@keyframes rs-tile { 0%, 10% { background: #e1dcfb; } 25%, 80% { background: #7057e8; } 100% { background: #e1dcfb; } }
.rs-viz--seo svg { width: 100%; height: 100%; overflow: visible; }
.rs-viz--seo path { fill: none; stroke: #f45158; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: rs-draw 4s ease-out infinite; }
@keyframes rs-draw { 0% { stroke-dashoffset: 100; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 100; } }
.rs-viz--support { position: relative; }
.rs-bubble { position: absolute; height: 16px; border-radius: 10px; }
.rs-bubble--a { top: 2px; right: 0; width: 64px; background: #c9f0e0; border-bottom-right-radius: 3px; animation: rs-chat 3.6s infinite; }
.rs-bubble--b { bottom: 4px; left: 0; width: 52px; background: #2fb889; border-bottom-left-radius: 3px; animation: rs-chat 3.6s 1.2s infinite; }
@keyframes rs-chat { 0%, 8% { opacity: 0; transform: translateY(6px) scale(.8); } 18%, 78% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.rs-viz--ads { display: flex; align-items: flex-end; gap: 5px; }
.rs-viz--ads i { flex: 1; height: calc(30% + var(--k) * 16%); border-radius: 4px 4px 0 0; background: linear-gradient(#f2c21a, #f8de85); transform-origin: bottom; animation: rs-bar 3.2s calc(var(--k) * .12s) ease-out infinite; }
@keyframes rs-bar { 0% { transform: scaleY(.2); } 40%, 85% { transform: scaleY(1); } 100% { transform: scaleY(.2); } }
@keyframes rs-spin { to { transform: rotate(360deg); } }

@media (max-width: 991px) {
    .rs-section { padding: 64px 0; }
    .rs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rs-years { grid-column: 1 / -1; grid-row: auto; min-height: 220px; }
}
@media (max-width: 575px) {
    .rs-section { padding: 48px 0; }
    .rs-section h2 { font-size: 25px; }
    .rs-head p { font-size: 14px; }
    .rs-grid { gap: 12px; }
    .rs-card { padding: 16px; border-radius: 20px; }
    .rs-viz { width: 64px; height: 34px; }
    .rs-icon { width: 40px; height: 40px; font-size: 17px; }
    .rs-count { font-size: 32px; }
    .rs-label { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
    .rs-section *, .rs-section *::before, .rs-section *::after { animation: none !important; transition: none !important; }
    .rs-viz--sites i { background: #7057e8; }
    .rs-viz--seo path { stroke-dashoffset: 0; }
}
