

.ri-section {
background: var(--primary-color-1);
position: relative;
overflow: hidden;
padding: 4rem 0 5rem;
}

.ri-section::before {
content: '';
position: absolute;
inset: 0;
background-image:
radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.035) 1px, transparent 0);
background-size: 36px 36px;
z-index: 0;
animation: riGridShift 25s linear infinite;
}

@keyframes riGridShift {
0%   { transform: translate(0, 0); }
100% { transform: translate(36px, 36px); }
}

.ri-orb {
position: absolute;
border-radius: 50%;
filter: blur(90px);
opacity: 0.12;
z-index: 0;
animation: riOrbDrift 10s ease-in-out infinite alternate;
}

.ri-orb--1 {
width: 320px;
height: 320px;
background: var(--secondary-color-1);
top: 5%;
left: -6%;
animation-delay: 0s;
}

.ri-orb--2 {
width: 260px;
height: 260px;
background: var(--accent-color-2, #5bbad5);
top: 55%;
right: -4%;
animation-delay: -4s;
}

.ri-orb--3 {
width: 200px;
height: 200px;
background: var(--secondary-color-1);
bottom: 8%;
left: 35%;
animation-delay: -7s;
}

@keyframes riOrbDrift {
0%   { transform: translate(0, 0) scale(1); }
100% { transform: translate(25px, -25px) scale(1.12); }
}

.ri-particles {
position: absolute;
inset: 0;
z-index: 0;
pointer-events: none;
}

.ri-container {
max-width: 1400px;
margin: 0 auto;
padding: 0 24px;
position: relative;
z-index: 1;
}

.ri-pin {
position: relative;
z-index: 2;
margin-bottom: 1.25rem;
}

.ri-pin svg {
width: 36px;
height: 50px;
filter: drop-shadow(0 4px 14px rgba(212, 253, 101, 0.4));
animation: riPinFloat 2.4s ease-in-out infinite;
}

@keyframes riPinFloat {
0%, 100% { transform: translateY(0); }
50%      { transform: translateY(-10px); }
}

.ri-title {
font-family: 'League Spartan', sans-serif;
color: var(--light-color);
font-size: clamp(2.4rem, 6vw, 4.5rem);
font-weight: 700;
text-transform: uppercase;
line-height: 0.95;
letter-spacing: -0.02em;
margin-bottom: 2.5rem;
position: relative;
z-index: 2;
}

.ri-title span {
display: block;
background: linear-gradient(90deg, var(--light-color) 30%, var(--secondary-color-1));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.ri-title::after {
content: '';
display: block;
width: 80px;
height: 4px;
background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
border-radius: 2px;
margin-top: 14px;
}

.ri-scroll-hint {
display: none;
align-items: center;
gap: 0.5rem;
color: rgba(255, 255, 255, 0.4);
font-size: 0.85rem;
font-weight: 500;
margin-bottom: 1rem;
animation: riHintSlide 2s ease-in-out infinite;
}

.ri-scroll-hint svg {
width: 18px;
height: 18px;
}

@keyframes riHintSlide {
0%, 100% { opacity: 0.4; transform: translateX(0); }
50%      { opacity: 0.75; transform: translateX(5px); }
}

.ri-step-number {
background: var(--secondary-color-1);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-family: 'League Spartan', sans-serif;
font-size: clamp(1.6rem, 3.5vw, 2.8rem);
font-weight: 700;
color: var(--primary-color-1);
position: relative;
z-index: 3;
box-shadow:
0 0 0 5px rgba(212, 253, 101, 0.12),
0 8px 24px rgba(0, 0, 0, 0.22),
inset 0 2px 0 rgba(255, 255, 255, 0.2);
transition:
transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
box-shadow 0.35s ease;
cursor: default;
}

.ri-step-number::after {
content: '';
position: absolute;
inset: -7px;
border-radius: 50%;
border: 2px solid var(--secondary-color-1);
opacity: 0;
transition: opacity 0.3s ease, transform 0.35s ease;
transform: scale(0.85);
}

.ri-step:hover .ri-step-number {
transform: scale(1.12) rotate(5deg);
box-shadow:
0 0 0 7px rgba(212, 253, 101, 0.2),
0 12px 32px rgba(0, 0, 0, 0.28),
0 0 40px rgba(212, 253, 101, 0.4);
}

.ri-step:hover .ri-step-number::after {
opacity: 0.45;
transform: scale(1.18);
}

.ri-step-content {
background: var(--secondary-color-1);
border-radius: 20px;
padding: clamp(1.1rem, 2.8vw, 1.8rem);
box-shadow:
0 8px 22px rgba(0, 0, 0, 0.16),
0 2px 0 rgba(255, 255, 255, 0.12) inset;
position: relative;
z-index: 2;
overflow: hidden;
transition:
transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
box-shadow 0.35s ease;
}

.ri-step-content::before {
content: '';
position: absolute;
top: -25px;
right: -25px;
width: 70px;
height: 70px;
background: rgba(7, 38, 203, 0.055);
border-radius: 50%;
transition: transform 0.4s ease;
}

.ri-step:hover .ri-step-content {
transform: translateY(-5px);
box-shadow:
0 14px 36px rgba(0, 0, 0, 0.22),
0 0 50px rgba(212, 253, 101, 0.08);
}

.ri-step:hover .ri-step-content::before {
transform: scale(1.6);
}

.ri-step-title {
font-family: 'League Spartan', sans-serif;
color: var(--text-color);
font-size: clamp(0.95rem, 2.2vw, 1.3rem);
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.01em;
margin-bottom: 0.5rem;
line-height: 1.15;
}

.ri-step-description {
font-family: 'Poppins', sans-serif;
color: rgba(15, 20, 25, 0.75);
font-size: clamp(0.8rem, 1.4vw, 0.92rem);
line-height: 1.6;
margin: 0;
font-weight: 400;
}

.ri-step-description strong {
color: var(--text-color);
font-weight: 600;
}

.ri-final-icon {
font-size: 3.2rem;
margin-bottom: 0.6rem;
display: inline-block;
animation: riCelebSpin 2s ease-in-out infinite;
}

@keyframes riCelebSpin {
0%, 100% { transform: scale(1) rotate(0deg); }
25%      { transform: scale(1.12) rotate(-6deg); }
75%      { transform: scale(1.12) rotate(6deg); }
}

.ri-final-text {
font-family: 'League Spartan', sans-serif;
color: var(--light-color);
font-size: clamp(1rem, 2vw, 1.3rem);
font-weight: 700;
line-height: 1.25;
}

.ri-cta-button {
display: inline-block;
background: var(--secondary-color-1);
color: var(--dark-color);
padding: 0.7rem 1.8rem;
border-radius: 30px;
font-family: 'Poppins', sans-serif;
font-size: 0.95rem;
font-weight: 600;
text-decoration: none;
margin-top: 1.2rem;
box-shadow: 0 4px 12px rgba(184, 224, 75, 0.3);
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}

.ri-cta-button::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
transition: left 0.5s ease;
}

.ri-cta-button:hover {
background: var(--secondary-color-2);
color: var(--dark-color);
transform: translateY(-3px);
box-shadow: 0 6px 15px rgba(184, 224, 75, 0.5);
}

.ri-cta-button:hover::before {
left: 100%;
}

.ri-step {
opacity: 0;
transform: translateY(35px);
transition:
opacity 0.7s ease,
transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ri-step.ri-visible {
opacity: 1;
transform: translateY(0);
}

.ri-step:nth-child(1) { transition-delay: 0.05s; }
.ri-step:nth-child(2) { transition-delay: 0.15s; }
.ri-step:nth-child(3) { transition-delay: 0.25s; }
.ri-step:nth-child(4) { transition-delay: 0.35s; }
.ri-step:nth-child(5) { transition-delay: 0.45s; }

.ri-road-svg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 0;
}

.ri-road-body {
fill: none;
stroke: rgba(255, 255, 255, 0.14);
stroke-width: 44;
stroke-linecap: round;
stroke-linejoin: round;
}

.ri-road-dashes {
fill: none;
stroke: rgba(255, 255, 255, 0.32);
stroke-width: 3;
stroke-dasharray: 14, 14;
stroke-linecap: round;
animation: riDashFlow 1.6s linear infinite;
}

.ri-road-glow {
fill: none;
stroke: var(--secondary-color-1);
stroke-width: 3;
stroke-linecap: round;
opacity: 0;
filter: blur(5px);
transition: opacity 1s ease;
}

.ri-road-glow.ri-active {
opacity: 0.35;
}

@keyframes riDashFlow {
0%   { stroke-dashoffset: 0; }
100% { stroke-dashoffset: -28; }
}

@media (min-width: 993px) {
.ri-title {
text-align: left;
padding-left: 1%;
}

.ri-title::after {
margin-left: 1%;
}

.ri-pin {
padding-left: 1%;
}

.ri-scroll-hint {
display: flex;
padding-left: 1%;
}

.ri-wrapper {
position: relative;
overflow-x: auto;
overflow-y: hidden;
-webkit-overflow-scrolling: touch;
scrollbar-width: none;
padding-bottom: 2.5rem;
}

.ri-wrapper::-webkit-scrollbar {
display: none;
}

.ri-steps {
display: flex;
gap: 2.8rem;
padding: 2rem 1% 3rem;
min-width: max-content;
position: relative;
align-items: flex-end;
}

.ri-step {
flex: 0 0 275px;
display: flex;
flex-direction: column;
align-items: center;
position: relative;
}

.ri-step:nth-child(odd) {
margin-bottom: 80px;
}

.ri-step:nth-child(even) {
margin-top: 80px;
}

.ri-step-number {
width: 88px;
height: 88px;
margin-bottom: 1rem;
}

.ri-step-content {
width: 275px;
}

.ri-final-desktop {
flex: 0 0 210px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
margin-top: 30px;
}

.ri-step {
transform: translateX(50px) translateY(0);
}

.ri-step.ri-visible {
transform: translateX(0) translateY(0);
}

.ri-step:nth-child(odd).ri-visible {
margin-bottom: 80px;
}

.ri-step:nth-child(even).ri-visible {
margin-top: 80px;
}

.ri-mobile-only {
display: none !important;
}
}

@media (max-width: 992px) {
.ri-desktop-only {
display: none !important;
}

.ri-section {
padding: 3rem 0 3.5rem;
}

.ri-title {
text-align: center;
}

.ri-title::after {
margin-left: auto;
margin-right: auto;
}

.ri-pin {
text-align: center;
}

.ri-steps {
display: flex;
flex-direction: column;
gap: 0;
position: relative;
padding: 1rem 0;
}

.ri-steps::before {
content: '';
position: absolute;
top: 0;
bottom: 0;
left: 50%;
width: 3px;
background: repeating-linear-gradient(
to bottom,
rgba(255, 255, 255, 0.18) 0px,
rgba(255, 255, 255, 0.18) 8px,
transparent 8px,
transparent 16px
);
z-index: 0;
transform: translateX(-50%);
}

.ri-step {
display: flex;
align-items: flex-start;
gap: 1rem;
margin-bottom: 3rem;
position: relative;
}

.ri-step:nth-child(odd) {
flex-direction: row;
padding-left: 4%;
padding-right: 8%;
}

.ri-step:nth-child(even) {
flex-direction: row-reverse;
padding-right: 4%;
padding-left: 8%;
}

.ri-step-number {
width: 74px;
height: 74px;
flex-shrink: 0;
}

.ri-step-content {
flex: 1;
}

.ri-final-mobile {
text-align: center;
padding: 2.5rem 1rem 0;
position: relative;
z-index: 2;
}
}

@media (max-width: 576px) {
.ri-step:nth-child(odd) {
padding-left: 2%;
padding-right: 3%;
}

.ri-step:nth-child(even) {
padding-right: 2%;
padding-left: 3%;
}

.ri-step {
gap: 0.7rem;
margin-bottom: 2.5rem;
}

.ri-step-number {
width: 60px;
height: 60px;
}
}

@media (prefers-reduced-motion: reduce) {
.ri-section *,
.ri-section *::before,
.ri-section *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
