@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css");

.riv-content-wrap,
.riv-content-wrap * {
  box-sizing: border-box;
}

.riv-content-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2933;
  background: #fff;
}

.riv-content-wrap .riv-section {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

.riv-content-wrap .riv-section-white {
  background: #fff;
}

.riv-content-wrap .riv-section-warm {
  background:
    radial-gradient(circle at 12% 15%, rgba(255, 117, 85, 0.14), transparent 34%),
    radial-gradient(circle at 86% 20%, rgba(255, 184, 77, 0.16), transparent 32%),
    linear-gradient(180deg, #fff7f1 0%, #fffaf6 100%);
}

.riv-content-wrap .riv-container {
  width: min(1320px, 100%);
  max-width: 100%;
  margin: 0 auto;
  padding: 84px 28px;
}

.riv-content-wrap .riv-heading-block {
  max-width: 790px;
  margin: 0 auto 38px;
  text-align: center;
}

.riv-content-wrap .riv-heading-block h2 {
  margin: 0;
  font-size: clamp(1.2rem, 4vw, 2.2rem) !important;
  line-height: 1.15;
  font-weight: 820;
  letter-spacing: 0;
  color: #17212b;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.riv-content-wrap .riv-heading-block h2 span {
  background: linear-gradient(135deg, #ff4500 0%, #ff8a3d 45%, #c2410c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.riv-content-wrap .riv-heading-block p {
  margin: 14px auto 0;
  max-width: 680px;
  color: #64717f;
  font-size: 1.03rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.riv-content-wrap .riv-card-grid {
  display: grid;
  width: 100%;
  max-width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.riv-content-wrap .riv-card {
  --riv-a: #ff4500;
  --riv-b: #ffb156;
  --riv-soft: rgba(255, 69, 0, 0.1);
  --fg-mx: 50%;
  --fg-my: 50%;
  --fg-tilt-x: 0deg;
  --fg-tilt-y: 0deg;
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 255px;
  padding: 28px;
  border: 1px solid rgba(31, 41, 51, 0.1);
  border-radius: 18px;
  background:
    radial-gradient(circle at var(--fg-mx) var(--fg-my), rgba(255, 255, 255, 0.92), transparent 0 118px),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 246, 0.78));
  box-shadow: 0 16px 42px rgba(31, 41, 51, 0.08);
  transform: perspective(900px) rotateX(var(--fg-tilt-x)) rotateY(var(--fg-tilt-y)) translateY(18px);
  opacity: 0;
  transition: transform 420ms ease, opacity 500ms ease, box-shadow 320ms ease, border-color 320ms ease, background 320ms ease;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.riv-content-wrap .riv-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 0%, var(--riv-soft), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0));
  opacity: 0.9;
  transition: opacity 320ms ease;
}

.riv-content-wrap .riv-card::after {
  content: "";
  position: absolute;
  inset: auto 22px 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--riv-a), var(--riv-b));
  transform: scaleX(0.28);
  transform-origin: left;
  opacity: 0.5;
  transition: transform 320ms ease, opacity 320ms ease;
}

.riv-content-wrap .riv-card:nth-child(2) { --riv-a: #e11d48; --riv-b: #fb7185; --riv-soft: rgba(225, 29, 72, 0.1); }
.riv-content-wrap .riv-card:nth-child(3) { --riv-a: #0f766e; --riv-b: #5eead4; --riv-soft: rgba(15, 118, 110, 0.1); }
.riv-content-wrap .riv-card:nth-child(4) { --riv-a: #7c3aed; --riv-b: #c4b5fd; --riv-soft: rgba(124, 58, 237, 0.1); }
.riv-content-wrap .riv-card:nth-child(5) { --riv-a: #2563eb; --riv-b: #93c5fd; --riv-soft: rgba(37, 99, 235, 0.1); }
.riv-content-wrap .riv-card:nth-child(6) { --riv-a: #ca8a04; --riv-b: #fde68a; --riv-soft: rgba(202, 138, 4, 0.12); }
.riv-content-wrap .riv-card:nth-child(7) { --riv-a: #be123c; --riv-b: #fda4af; --riv-soft: rgba(190, 18, 60, 0.1); }
.riv-content-wrap .riv-card:nth-child(8) { --riv-a: #0891b2; --riv-b: #67e8f9; --riv-soft: rgba(8, 145, 178, 0.1); }

.riv-content-wrap .riv-card.riv-is-visible {
  opacity: 1;
  transform: perspective(900px) rotateX(var(--fg-tilt-x)) rotateY(var(--fg-tilt-y)) translateY(0);
}

.riv-content-wrap .riv-card:hover {
  border-color: color-mix(in srgb, var(--riv-a) 42%, transparent);
  box-shadow: 0 24px 58px rgba(31, 41, 51, 0.14);
  transform: perspective(900px) rotateX(var(--fg-tilt-x)) rotateY(var(--fg-tilt-y)) translateY(-7px);
}

.riv-content-wrap .riv-card:hover::after {
  transform: scaleX(1);
  opacity: 0.95;
}

.riv-content-wrap .riv-icon {
  width: 54px;
  height: 54px;
  max-width: 100%;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--riv-soft), rgba(255, 255, 255, 0.84));
  color: var(--riv-a);
  font-size: 1.25rem;
  box-shadow: inset 0 0 0 1px rgba(31, 41, 51, 0.06);
  transition: transform 320ms ease, color 320ms ease, background 320ms ease, box-shadow 320ms ease;
}

.riv-content-wrap .riv-card:hover .riv-icon {
  transform: translateY(-3px) rotate(-3deg) scale(1.05);
  color: #fff;
  background: linear-gradient(135deg, var(--riv-a), var(--riv-b));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--riv-a) 24%, transparent);
}

.riv-content-wrap .riv-card h3 {
  position: relative;
  display: inline;
  margin: 0;
  color: #17212b;
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 780;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  background-image: linear-gradient(90deg, var(--riv-a), var(--riv-b));
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: 0 100%;
  transition: background-size 320ms ease;
}

.riv-content-wrap .riv-card:hover h3 {
  background-size: 100% 2px;
}

.riv-content-wrap .riv-card p {
  margin: 16px 0 0;
  color: #5b6775;
  font-size: 0.96rem;
  line-height: 1.68;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.riv-content-wrap .riv-cta {
  display: inline-block;
  max-width: 100%;
  margin-top: 18px;
  color: var(--riv-a);
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.35;
  opacity: 0.35;
  transform: translateY(8px);
  transition: opacity 280ms ease, transform 280ms ease;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.riv-content-wrap .riv-card:hover .riv-cta {
  opacity: 1;
  transform: translateY(0);
}

.riv-content-wrap .riv-tilt-grid .riv-card {
  transform-style: preserve-3d;
}

.riv-content-wrap .riv-process-card {
  min-height: 280px;
  padding-top: 32px;
}

.riv-content-wrap .riv-process-card::before {
  content: attr(data-step);
  position: absolute;
  right: 20px;
  top: 10px;
  z-index: -1;
  color: color-mix(in srgb, var(--riv-a) 10%, transparent);
  font-size: 5.2rem;
  font-weight: 900;
  line-height: 1;
  transition: transform 320ms ease, color 320ms ease;
}

.riv-content-wrap .riv-step-num {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 16px;
  color: var(--riv-a);
  font-size: 0.82rem;
  font-weight: 860;
  letter-spacing: 0.08em;
  line-height: 1;
}

.riv-content-wrap .riv-process-card:hover::before {
  transform: translateY(-4px) scale(1.05);
  color: color-mix(in srgb, var(--riv-a) 16%, transparent);
}

@media (min-width: 1200px) {
  .riv-content-wrap .riv-container {
    width: min(1320px, 100%);
    padding: 92px 30px;
  }

  .riv-content-wrap .riv-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .riv-content-wrap .riv-container {
    width: min(1120px, 100%);
    padding: 76px 26px;
  }

  .riv-content-wrap .riv-heading-block p {
    font-size: 1rem;
  }

  .riv-content-wrap .riv-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }

  .riv-content-wrap .riv-card {
    padding: 25px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .riv-content-wrap .riv-container {
    padding: 64px 22px;
  }

  .riv-content-wrap .riv-heading-block {
    margin-bottom: 30px;
  }

  .riv-content-wrap .riv-heading-block p {
    font-size: 0.98rem;
  }

  .riv-content-wrap .riv-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .riv-content-wrap .riv-card {
    padding: 24px;
  }

  .riv-content-wrap .riv-card h3 {
    font-size: 1.03rem;
  }

  .riv-content-wrap .riv-card p {
    font-size: 0.94rem;
  }
}

@media (min-width: 430px) and (max-width: 767px) {
  .riv-content-wrap .riv-container {
    padding: 52px 18px;
  }

  .riv-content-wrap .riv-heading-block {
    margin-bottom: 26px;
  }

  .riv-content-wrap .riv-heading-block p {
    font-size: 0.94rem;
    line-height: 1.62;
  }

  .riv-content-wrap .riv-card-grid {
    grid-template-columns: 1fr !important;
    gap: 18px;
  }

  .riv-content-wrap .riv-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: auto;
    padding: 22px;
  }
}

@media (min-width: 375px) and (max-width: 429px) {
  .riv-content-wrap .riv-container {
    padding: 46px 15px;
  }

  .riv-content-wrap .riv-heading-block {
    margin-bottom: 22px;
  }

  .riv-content-wrap .riv-heading-block p {
    font-size: 0.9rem;
    line-height: 1.58;
  }

  .riv-content-wrap .riv-card-grid {
    grid-template-columns: 1fr !important;
    gap: 15px;
  }

  .riv-content-wrap .riv-card {
    min-height: auto;
    padding: 19px;
    border-radius: 15px;
  }

  .riv-content-wrap .riv-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 1.08rem;
  }

  .riv-content-wrap .riv-card h3 {
    font-size: 1rem;
  }

  .riv-content-wrap .riv-card p {
    font-size: 0.9rem;
  }
}

@media (min-width: 320px) and (max-width: 374px) {
  .riv-content-wrap .riv-container {
    padding: 40px 12px;
  }

  .riv-content-wrap .riv-heading-block {
    margin-bottom: 20px;
  }

  .riv-content-wrap .riv-heading-block p {
    font-size: 0.86rem;
    line-height: 1.55;
  }

  .riv-content-wrap .riv-card-grid {
    grid-template-columns: 1fr !important;
    gap: 13px;
  }

  .riv-content-wrap .riv-card {
    min-height: auto;
    padding: 16px;
    border-radius: 14px;
  }

  .riv-content-wrap .riv-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 17px;
    border-radius: 13px;
    font-size: 1rem;
  }

  .riv-content-wrap .riv-card h3 {
    font-size: 0.96rem;
  }

  .riv-content-wrap .riv-card p,
  .riv-content-wrap .riv-cta {
    font-size: 0.86rem;
  }

  .riv-content-wrap .riv-process-card::before {
    right: 12px;
    top: 8px;
    font-size: 4rem;
  }
}

@media (max-width: 319px) {
  .riv-content-wrap .riv-container {
    padding: 34px 10px;
  }

  .riv-content-wrap .riv-card-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .riv-content-wrap .riv-card {
    padding: 14px;
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .riv-content-wrap .riv-card,
  .riv-content-wrap .riv-card::after,
  .riv-content-wrap .riv-icon,
  .riv-content-wrap .riv-cta,
  .riv-content-wrap .riv-process-card::before {
    transition: none !important;
    animation: none !important;
  }

  .riv-content-wrap .riv-card,
  .riv-content-wrap .riv-card.riv-is-visible,
  .riv-content-wrap .riv-card:hover {
    transform: none !important;
    opacity: 1 !important;
  }
}