/* =============== HERO =============== */
.rtgs-hero {
  position: relative;
  height: 420px;
  margin-top: 62px;
  overflow: hidden;
}

.gradient-text {
  background: linear-gradient(135deg, #8cff00, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* IMAGE */
.rtgs-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05); /* subtle zoom */
}

/* OVERLAY */
.rtgs-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at center,
      rgba(34, 197, 94, 0.18),
      transparent 60%
    ),
    linear-gradient(180deg, rgba(2, 6, 23, 0.65), rgba(2, 6, 23, 0.9));
  z-index: 1;
}

/* CONTENT */
.rtgs-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.rtgs-hero h1 {
  font-size: 56px;
  font-weight: 800;
  background: linear-gradient(135deg, #eaffc7, #8cff00, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rtgs-hero p {
  margin-top: 14px;
  max-width: 620px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .rtgs-hero {
    height: 340px;
  }

  .rtgs-hero h1 {
    font-size: 38px;
  }
}

.rtgs-overview {
  padding: 80px 20px;
  background:
    radial-gradient(circle at top, rgba(34,197,94,0.10), transparent 55%),
    linear-gradient(180deg, #f8fafc, #ffffff);
}

/* CARD */
.rtgs-overview-card {
  max-width: 1200px;
  margin: auto;

  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(14px);

  padding: 20px 20px;
  border-radius: 36px;

  box-shadow:
    0 40px 90px rgba(15,23,42,0.10);

  transition: transform 0.4s ease;
}

/* GRID */
.rtgs-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 90px;
  align-items: center;
}

/* IMAGE */
.rtgs-overview-image img {
  width: 100%;
  max-width: 460px; /* IMAGE BIGGER */
  display: block;

  border-radius: 32px;

  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(10px);

  box-shadow:
    0 35px 90px rgba(15,23,42,0.25);

  animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {
  0% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
  100% { transform: translateY(0); }
}

/* CONTENT */
.rtgs-overview-content {
  text-align: left;
}

/* BADGE */
.rtgs-badge {
  display: inline-block;
  padding: 8px 22px;
  margin-bottom: 18px;

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  border-radius: 999px;

  color: #065f46;
  background: rgba(34,197,94,0.15);
}

/* HEADING */
.rtgs-overview-content h2 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  color: #020617;
  margin-bottom: 24px;
}

/* TEXT */
.rtgs-overview-content .lead {
  font-size: 17px;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 18px;
}

.rtgs-overview-content .muted {
  font-size: 14.5px;
  line-height: 1.7;
  color: #64748b;
  margin-bottom: 14px;
}

/* HOVER */
.rtgs-overview-card:hover {
  transform: translateY(-6px);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .rtgs-overview-grid {
    gap: 60px;
  }

  .rtgs-overview-image img {
    max-width: 400px;
  }
}

@media (max-width: 900px) {
  .rtgs-overview-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .rtgs-overview-content {
    text-align: center;
  }

  .rtgs-overview-image img {
    margin: auto;
  }
}

@media (max-width: 768px) {
  .rtgs-overview-card {
    padding: 60px 24px;
  }

  .rtgs-overview-content h2 {
    font-size: 28px;
  }
}


/* ================= RTGS FLOW ================= */
.rtgs-flow {
  padding: 140px 20px;
  text-align: center;

  /* subtle enterprise background */
  background: radial-gradient(
      circle at top,
      rgba(34, 197, 94, 0.12),
      transparent 60%
    ),
    linear-gradient(180deg, #020617, #020617);
}

/* TITLE */
.rtgs-flow h2 {
  font-size: 32px;
  color: #e5e7eb;
}

/* ================= FLOW LINE ================= */
.flow-track {
  position: relative;
  max-width: 1000px;
  height: 3px;
  margin: 50px auto 70px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
  border-radius: 3px;
}

/* MOVING SIGNAL */
.flow-pulse {
  position: absolute;
  inset: 0;
  width: 50%;
  background: linear-gradient(
    90deg,
    transparent,
    #38bdf8,
    #7c3aed,
    transparent
  );
  animation: rtgsFlow 5s linear infinite;
}

@keyframes rtgsFlow {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

/* ================= GRID ================= */
.flow-grid {
  max-width: 1100px;
  margin: 20px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 28px;
}

/* ================= CARD ================= */
.flow-step {
  position: relative;
  padding: 24px 22px;
  border-radius: 18px;

  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);

  font-size: 14px;
  font-weight: 500;
  color: #334155;

  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);

  opacity: 0.35;
  transform: translateY(0) scale(0.98);

  animation: rtgsStep 7s infinite;
}

/* SEQUENCE */
.flow-step:nth-child(1) {
  animation-delay: 0s;
}
.flow-step:nth-child(2) {
  animation-delay: 1.2s;
}
.flow-step:nth-child(3) {
  animation-delay: 2.2s;
}
.flow-step:nth-child(4) {
  animation-delay: 3.2s;
}
.flow-step:nth-child(5) {
  animation-delay: 4.2s;
}
.flow-step:nth-child(6) {
  animation-delay: 5.2s;
}

/* CORE FLOW LOGIC */
@keyframes rtgsStep {
  0% {
    opacity: 0.35;
    transform: scale(0.98);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
  }

  20% {
    opacity: 1;
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 35px 80px rgba(37, 99, 235, 0.45);
  }

  40% {
    opacity: 0.6;
    transform: scale(1);
  }

  100% {
    opacity: 0.35;
  }
}

/* ================= HIGHLIGHT – NEXABYTE ================= */
.flow-step.highlight {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: #065f46;
  font-weight: 600;
  animation-name: rtgsStepStrong;
}

@keyframes rtgsStepStrong {
  0% {
    opacity: 0.4;
  }
  20% {
    opacity: 1;
    transform: translateY(-12px) scale(1.07);
    box-shadow: 0 40px 90px rgba(22, 163, 74, 0.55);
  }
  40% {
    opacity: 0.7;
  }
  100% {
    opacity: 0.4;
  }
}

/* ================= FINAL STEP ================= */
.flow-step.success {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  color: #047857;
  font-weight: 600;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .flow-track {
    display: none;
  }

  .rtgs-flow {
    padding: 100px 20px;
  }

  .rtgs-flow h2 {
    font-size: 26px;
  }
}

/* ================= COMMON SECTION BASE ================= */
.rtgs-features,
.rtgs-usecases,
.rtgs-usp {
  padding: 130px 20px;
  text-align: center;
}

/* subtle contrast */
.rtgs-features,
.rtgs-usp {
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
}

/* ================= GRID ================= */
.features-grid,
.usecase-grid,
.usp-grid {
  max-width: 1100px;
  margin: 70px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 34px;
}

/* ================= CARD BASE ================= */
.feature-card {
  position: relative;
  padding: 36px 34px;
  border-radius: 24px;

  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);

  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);

  transform-style: preserve-3d;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

/* ================= FEATURE CARD – HOVER ONLY ================= */

.feature-card:hover {
  background: linear-gradient(40deg, rgb(4, 25, 18), rgb(0, 60, 42));

  cursor: pointer;

  transform: translateY(-10px); 
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.22);
}

/* text color only on hover */
.feature-card:hover h4 {
  color: #ecfdf5;
}

.feature-card:hover p {
  color: #bbf7d0;
}

/* ================= 3D HOVER ================= */
.usecase-card:hover,
.usp-card:hover {
  transform: translateY(-14px) rotateX(4deg);
  box-shadow: 0 40px 90px rgba(15, 23, 42, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* ================= FEATURE CARD TEXT ================= */
.feature-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #020617;
}

.feature-card p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

/* ================= RTGS USE CASES ================= */
.rtgs-usecases {
  padding: 130px 20px;
  text-align: center;
    background: conic-gradient(
    from 60deg at 50% 50%,
    #198754,
    rgba(0, 240, 140, 0.55),
    rgb(40 58 200),
    rgb(113 61 174),
    #198754
  );

}

.rtgs-usecases h2 {
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
}

/* ================= GRID ================= */
.usecase-grid {
  max-width: 1100px;
  margin: 70px auto 0;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

/* ================= USE CASE CARD ================= */
.usecase-card {
  position: relative;

  padding: 34px 28px;
  border-radius: 22px;

  background: linear-gradient(
    40deg,
    rgb(4, 25, 18),
    rgb(0, 60, 42)
  );
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;

  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);

  transition: transform 0.45s ease, box-shadow 0.45s ease, background 0.45s ease,
    color 0.45s ease;
}

/* ================= HOVER – PREMIUM GREEN ================= */
.usecase-card:hover {
  cursor: pointer;

  transform: translateY(-12px);
  box-shadow: 0 36px 85px rgba(0, 0, 0, 0.22);
}

/* ================= SUBTLE GLOW EDGE ================= */
.usecase-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(34, 197, 94, 0.35),
    transparent
  );

  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.usecase-card:hover::after {
  opacity: 1;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .rtgs-usecases {
    padding: 90px 20px;
  }

  .rtgs-usecases h2 {
    font-size: 26px;
  }

  .usecase-card {
    padding: 28px;
  }
}

/* ================= RTGS USP ================= */
/* ================= RTGS USP ================= */
.rtgs-usp {
  padding: 140px 20px;
  background:
    radial-gradient(circle at right, rgba(34,197,94,0.08), transparent 55%),
    linear-gradient(180deg, #f8fafc, #eef2f7);
}

/* WRAPPER */
.rtgs-usp-wrapper {
  max-width: 1280px;
  margin: auto;

  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 100px;
  align-items: center;
}

/* LEFT CONTENT */
.rtgs-usp-content h2 {
  font-size: 36px;
  font-weight: 800;
  color: #020617;
  margin-bottom: 60px;
  line-height: 1.2;
}

/* GRID → 2-2 CARDS */
.usp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* CARD */
.usp-card {
  position: relative;
  padding: 36px 34px;
  border-radius: 28px;

  font-size: 15px;
  font-weight: 600;
  color: #020617;

  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(14px);

  box-shadow:
    0 20px 45px rgba(15,23,42,0.10),
    inset 0 1px 0 rgba(255,255,255,0.6);

  transform-style: preserve-3d;
  transition:
    transform 0.55s ease,
    box-shadow 0.55s ease,
    background 0.55s ease,
    color 0.55s ease;
}

/* HOVER – PREMIUM GLASS */
.usp-card:hover {
  background: linear-gradient(
    135deg,
    rgba(4,25,18,0.92),
    rgba(6,44,34,0.96)
  );

  color: #ecfdf5;

  transform: translateY(-12px) rotateX(4deg);
  box-shadow:
    0 45px 110px rgba(15,23,42,0.32);
}

/* EDGE GLOW */
.usp-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(34,197,94,0.35),
    transparent
  );

  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.usp-card:hover::after {
  opacity: 1;
}

/* ================= RIGHT GIF (BIGGER) ================= */
.rtgs-usp-visual img {
  width: 100%;
  max-width: 520px;  
  height: auto;

  display: block;
  margin-left: auto;
  margin-top: 40px;
  transform: translateY(20px);
  border-radius: 36px;

  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(12px);

  box-shadow:
    0 45px 120px rgba(15,23,42,0.35);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
  .rtgs-usp-wrapper {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .usp-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rtgs-usp-visual img {
    margin: auto;
    max-width: 460px;
  }

  .rtgs-usp-content h2 {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .rtgs-usp {
    padding: 100px 18px;
  }

  .usp-grid {
    grid-template-columns: 1fr;
  }

  .rtgs-usp-content h2 {
    font-size: 28px;
    margin-bottom: 45px;
  }

  .usp-card {
    padding: 28px;
  }

  .rtgs-usp-visual img {
    max-width: 360px;
  }
}



/* ================= GLOW EDGE (SUBTLE) ================= */
.feature-card::after,
.usecase-card::after,
.usp-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(34, 197, 94, 0.35),
    transparent
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.feature-card:hover::after,
.usecase-card:hover::after {
  opacity: 1;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .rtgs-features,
  .rtgs-usecases {
    padding: 90px 20px;
  }

  .feature-card,
  .usecase-card {
    padding: 30px;
  }
}
