/* ================= CUPI HERO ================= */
.cupi-hero {
  position: relative;
  height: 440px;
  margin-top: 62px;
  overflow: hidden;
}

/* IMAGE */
.cupi-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}

/* OVERLAY */
.cupi-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  background: radial-gradient(
      circle at center,
      rgba(34, 197, 94, 0.217),
      transparent 60% 60%
    ),
    linear-gradient(180deg, rgb(2 6 23 / 5%), rgb(2 6 23 / 48%));
}

/* CONTENT */
.cupi-hero-content {
  position: relative;
  z-index: 2;

  height: 100%;
  padding: 0 20px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  color: #ffffff;
}

/* TITLE */
.cupi-hero-content h1 {
  font-size: 58px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 14px;

  background: linear-gradient(135deg, #eaffc7, #8cff00, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* SUB TEXT */
.cupi-hero-content p {
  max-width: 640px;
  font-size: 15px;
  line-height: 1.7;

  color: rgba(255, 255, 255, 0.88);
}

/* GRADIENT TEXT */
.gradient-text {
  background: linear-gradient(135deg, #8cff00, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-white {
  background: linear-gradient(135deg, #13572e, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1024px) {
  .cupi-hero {
    height: 400px;
  }

  .cupi-hero-content h1 {
    font-size: 46px;
  }
}

@media (max-width: 768px) {
  .cupi-hero {
    height: 340px;
  }

  .cupi-hero-content h1 {
    font-size: 34px;
  }

  .cupi-hero-content p {
    font-size: 14px;
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .cupi-hero {
    height: 300px;
  }

  .cupi-hero-content h1 {
    font-size: 28px;
  }
}

/* ================= CUPI OVERVIEW ================= */
.cupi-overview {
  padding: 80px 8%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;

  background: radial-gradient(
      circle at top,
      rgba(34, 197, 94, 0.12),
      transparent 60%
    ),
    linear-gradient(180deg, #f8fafc, #eef2f7);
}

/* ================= LEFT CONTENT ================= */
.cupi-overview-text h2 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  color: #020617;
  margin-bottom: 22px;
}

.cupi-gradient-text {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cupi-lead {
  font-size: 16px;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 14px;
}

.cupi-muted {
  font-size: 15px;
  line-height: 1.7;
  color: #64748b;
  max-width: 520px;
}

/* TRUST TEXT */
.cupi-trust {
  margin-top: 22px;
  font-size: 14px;
  color: #0f172a;
}

.cupi-trust strong {
  color: #16a34a;
}

/* BUTTON */
.cupi-btn {
  margin-top: 30px;
  padding: 14px 34px;

  border-radius: 999px;
  border: none;
  cursor: pointer;

  font-size: 14px;
  font-weight: 600;
  color: #ffffff;

  background: linear-gradient(135deg, #16a34a, #22c55e);

  box-shadow: 0 18px 45px rgba(34, 197, 94, 0.35);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.cupi-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(34, 197, 94, 0.45);
}

/* ================= RIGHT VISUAL ================= */
.cupi-overview-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.cupi-overview-visual img {
  width: 100%;
  max-width: 420px;

  border-radius: 28px;

  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);

  box-shadow: 0 35px 80px rgba(15, 23, 42, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);

  animation: cupiFloat 6s ease-in-out infinite;
}

@keyframes cupiFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
  100% {
    transform: translateY(0);
  }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .cupi-overview {
    gap: 50px;
  }

  .cupi-overview-text h2 {
    font-size: 34px;
  }
}

@media (max-width: 768px) {
  .cupi-overview {
    grid-template-columns: 1fr;
    padding: 100px 20px;
    text-align: center;
  }

  .cupi-muted {
    margin: 0 auto;
  }

  .cupi-overview-visual {
    margin-top: 40px;
  }
}

@media (max-width: 480px) {
  .cupi-overview-text h2 {
    font-size: 28px;
  }

  .cupi-btn {
    padding: 12px 28px;
  }
}

/* ================= CUPI SERVICES ================= */
.cupi-services {
  padding: 80px 20px;
  text-align: center;

  background: radial-gradient(
      circle at top,
      rgba(34, 197, 94, 0.12),
      transparent 60%
    ),
    linear-gradient(180deg, #f8fafc, #eef2f7);
}

/* HEADING */
.cupi-services h2 {
  font-size: 36px;
  font-weight: 800;
  color: #020617;
}

/* SUBTEXT */
.cupi-services-subtext {
  margin: 18px auto 70px;
  max-width: 620px;
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
}

/* GRID */
.cupi-services-grid {
  max-width: 1100px;
  margin: auto;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

/* CARD */
.cupi-service-card {
  position: relative;
  padding: 42px 36px;
  border-radius: 30px;

  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);

  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);

  transform-style: preserve-3d;
  transition: transform 0.6s ease, box-shadow 0.6s ease, background 0.6s ease;
}

/* ICON WRAPPER – keep same size */
.cupi-service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 18px;
  background: linear-gradient(135deg, #16a34a, #22c55e);

  box-shadow: 0 18px 42px rgba(34, 197, 94, 0.45);
}

/* ICON IMAGE – FIXED SIZE */
.cupi-service-icon img {
  width: 40px;
  height: 40px;
  display: block;
}

/* TEXT */
.cupi-service-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #020617;
}

.cupi-service-card p {
  font-size: 14px;
  line-height: 1.65;
  color: #64748b;
}

/* HOVER – ENTERPRISE FEEL */
.cupi-service-card:hover {
  background: linear-gradient(
    135deg,
    rgba(4, 25, 18, 0.92),
    rgba(6, 44, 34, 0.96)
  );

  transform: translateY(-16px) rotateX(5deg);
  box-shadow: 0 45px 110px rgba(15, 23, 42, 0.32);
}

.cupi-service-card:hover h4,
.cupi-service-card:hover p {
  color: #ecfdf5;
}

.cupi-service-card:hover .cupi-service-icon {
  transform: translateY(-6px) scale(1.1);
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 22px 55px rgba(124, 58, 237, 0.55);
}

/* EDGE GLOW */
.cupi-service-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;
}

.cupi-service-card:hover::after {
  opacity: 1;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .cupi-services {
    padding: 90px 18px;
  }

  .cupi-services h2 {
    font-size: 28px;
  }

  .cupi-services-subtext {
    font-size: 14px;
  }

  .cupi-service-card {
    padding: 36px 28px;
  }
}

/* ================= CUPI CASHLESS ================= */
.cupi-cashless {
  padding: 80px 20px;

  background: radial-gradient(
      circle at top,
      rgba(34, 197, 94, 0.18),
      transparent 100%
    ),
    linear-gradient(135deg, #15452c, #154432, #1d4c3d);
}

/* WRAPPER */
.cupi-cashless-wrap {
  max-width: 1200px;
  margin: auto;

  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 90px;
  align-items: center;
}

/* LEFT IMAGE */
.cupi-cashless-image img {
  width: 100%;
  max-width: 420px;

  border-radius: 32px;

  /* background: rgba(255, 255, 255, 0.55); */
  backdrop-filter: blur(14px);

  box-shadow: 0 40px 90px rgba(15, 23, 42, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);

  animation: floatCupi 6s ease-in-out infinite;
}

/* FLOAT */
@keyframes floatCupi {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
  100% {
    transform: translateY(0);
  }
}

/* RIGHT CONTENT */
.cupi-cashless-content h2 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
}

.cupi-gradient-text {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cupi-lead1 {
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.7;
  color: #ccd9eb;
  max-width: 560px;
}

.cupi-muted1 {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: #9ac3ff;
  max-width: 560px;
}

/* BUTTON */
.cupi-primary-btn {
  margin-top: 34px;
  padding: 16px 44px;

  border-radius: 999px;
  border: none;

  font-size: 15px;
  font-weight: 700;
  color: #ffffff;

  background: linear-gradient(135deg, #16a34a, #22c55e);

  cursor: pointer;

  box-shadow: 0 22px 50px rgba(34, 197, 94, 0.45);

  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.cupi-primary-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(34, 197, 94, 0.6);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
  .cupi-cashless-wrap {
    grid-template-columns: 1fr;
    gap: 70px;
    text-align: center;
  }

  .cupi-cashless-image img {
    margin: auto;
  }

  .cupi-cashless-content h2 {
    font-size: 32px;
  }

  .cupi-lead,
  .cupi-muted {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .cupi-cashless {
    padding: 100px 18px;
  }

  .cupi-cashless-content h2 {
    font-size: 26px;
  }

  .cupi-primary-btn {
    padding: 14px 36px;
    font-size: 14px;
  }
}

.cupi-flow-advanced {
  padding: 90px 20px;
  background: linear-gradient(180deg,#f8fafc,#eef2f7);
  text-align: center;
}

.cupi-flow-advanced h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 90px;
}

.flow-stage {
  position: relative;
  max-width: 1200px;
  margin: auto;
  height: 260px;
}

.flow-path {
  position: absolute;
  inset: 0;
}

.flow-path.mobile {
  display: none;
}

/* PARTICLE */
.flow-particle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle,#22c55e,#16a34a);
  box-shadow: 0 0 30px rgba(34,197,94,0.9);
  position: absolute;
}

/* NODES */
.flow-node {
  position: absolute;
  padding: 18px 22px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 600;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 45px rgba(15,23,42,0.15);
  opacity: 0;
  transform: translate(-50%,-50%);
  white-space: nowrap;
}

/* ENGINE */
.flow-node.engine {
  background: linear-gradient(135deg,#041912,#0b3a2a);
  color: #ecfdf5;
}

/* SUCCESS */
.flow-node.success {
  background: linear-gradient(135deg,#dcfce7,#bbf7d0);
}

/* ================= MOBILE ================= */
@media (max-width: 900px) {
  .flow-stage {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .flow-path,
  .flow-particle {
    display: none;
  }

  .flow-node {
    position: relative;
    transform: none !important;
    opacity: 0;

    /* 🔥 GSAP motionPath reset */
    left: auto !important;
    top: auto !important;
    x: 0 !important;
    y: 0 !important;

    max-width: 340px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
  }

  /* extra safety for first & last card */
  .flow-node:first-child {
    margin-top: 10px;
  }

  .flow-node:last-child {
    margin-bottom: 10px;
  }
}


/* ================= TESTIMONIALS ================= */
.cupi-testimonials {
  padding: 10px 20px;
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  overflow: hidden;
  text-align: center;
}

.cupi-testimonials h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 70px;
  color: #020617;
}

.testimonial-track {
  display: flex;
  gap: 32px;
  width: max-content;

  animation: slideLTR 20s linear infinite;
  will-change: transform;
}


/* CARD */
.testimonial-card {
  width: 320px;
  padding: 32px 28px;
  border-radius: 26px;

  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);

  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);

  transition: transform 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-10px);
}

/* PROFILE */
.testimonial-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

/* AVATAR BASE */
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 14px;
  font-weight: 700;
  color: #ffffff;

  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
}

/* IMAGE AVATAR */
.avatar.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* INITIALS AVATAR */
.avatar.initials {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

/* PROFILE INFO */
.profile-info h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: #020617;
}

.profile-info span {
  font-size: 12.5px;
  color: #64748b;
}

/* TEXT */
.testimonial-text {
  font-size: 14px;
  line-height: 1.6;
  color: #334155;
}

/* ================= RANDOM GRADIENTS ================= */
.grad-1 {
  border-top: 4px solid #22c55e;
}
.grad-2 {
  border-top: 4px solid #2563eb;
}
.grad-3 {
  border-top: 4px solid #7c3aed;
}
.grad-4 {
  border-top: 4px solid #06b6d4;
}
.grad-5 {
  border-top: 4px solid #16a34a;
}
.grad-6 {
  border-top: 4px solid #0ea5e9;
}

/* SLIDE ANIMATION */
@keyframes slideLTR {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(0%);
  }
}




/* Pause animation when ANY card is hovered */
.testimonial-track:has(.testimonial-card:hover) {
  animation-play-state: paused;
}


/* RESPONSIVE */
@media (max-width: 768px) {
  .testimonial-card {
    width: 260px;
  }

  .cupi-testimonials h2 {
    font-size: 28px;
  }
}



/* ================= CUPI FEATURES LIST ================= */
.cupi-features-list {
  padding: 80px 20px;
  background: #f8fafc;
}

.cupi-features-list h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  color: #020617;
  margin-bottom: 80px;
}

/* TWO COLUMN LAYOUT */
.cupi-features-columns {
  max-width: 1200px;
  margin: auto;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

/* COLUMN */
.features-col {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* FEATURE ITEM */
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

/* ICON */
.feature-icon {
  width: 54px;
  height: 54px;
  min-width: 54px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: linear-gradient(135deg, #16a38b, #080a02);

  box-shadow: 0 12px 28px rgba(15,23,42,0.08);
}

.feature-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

/* TEXT */
.feature-text h4 {
  font-size: 18px;
  font-weight: 700;
  color: #020617;
  margin-bottom: 6px;
}

.feature-text p {
  font-size: 15px;
  line-height: 1.6;
  color: #64748b;
  max-width: 420px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .cupi-features-columns {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .cupi-features-list h2 {
    font-size: 28px;
    margin-bottom: 60px;
  }
}



/* ================= CUPI FAQ ================= */
.cupi-faq {
  padding: 80px 20px;
  background: #f8fafc;
}

.faq-header {
  text-align: center;
  margin-bottom: 70px;
}

.faq-header h2 {
  font-size: 34px;
  font-weight: 800;
  color: #020617;
}

.faq-header p {
  margin-top: 10px;
  font-size: 15px;
  color: #64748b;
}

/* FAQ LIST */
.faq-list {
  max-width: 860px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ITEM */
.faq-item {
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

/* QUESTION */
.faq-item summary {
  padding: 22px 26px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #020617;
  list-style: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

/* ARROW */
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: #22c55e;
  transition: transform 0.3s ease;
}

/* OPEN STATE */
.faq-item[open] summary::after {
  content: "−";
}

/* ANSWER */
.faq-item p {
  padding: 0 26px 22px;
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
}

/* HOVER */
.faq-item summary:hover {
  background: rgba(34, 197, 94, 0.06);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .cupi-faq {
    padding: 90px 18px;
  }

  .faq-header h2 {
    font-size: 26px;
  }

  .faq-item summary {
    padding: 20px;
    font-size: 14px;
  }

  .faq-item p {
    padding: 0 20px 18px;
    font-size: 13px;
  }
}

/* ===== MODAL OVERLAY ===== */
.cupi-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
}

/* ===== MODAL BOX ===== */
.cupi-modal {
  width: 100%;
  max-width: 520px;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.95),
    rgba(240,253,244,0.95)
  );
  border-radius: 26px;
  padding: 38px 34px;
  position: relative;

  box-shadow:
    0 40px 90px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.6);

  transform: perspective(1200px) rotateX(15deg) scale(0.85);
}

/* CLOSE */
.cupi-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

/* TEXT */
.cupi-modal h3 {
  font-size: 26px;
  font-weight: 800;
  text-align: center;
}

.cupi-modal h3 span {
  background: linear-gradient(135deg,#16a34a,#22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-subtext {
  text-align: center;
  font-size: 14px;
  color: #475569;
  margin: 10px 0 26px;
}

/* FORM */
.cupi-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cupi-form input,
.cupi-form select,
.cupi-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  outline: none;
}

.cupi-form textarea {
  resize: none;
}

/* SUBMIT */
.submit-btn {
  margin-top: 10px;
  padding: 14px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg,#16a34a,#22c55e);
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(34,197,94,0.45);
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .cupi-modal {
    margin: 0 14px;
    padding: 32px 22px;
  }
}
