* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100%;
  font-family: "Space Grotesk", sans-serif;
  scroll-behavior: smooth;
}
/* ===================================================
   🤝 PARTNERS SECTION
=================================================== */
.partner-logo {
  max-width: 150px;
  max-height: 48px;
  filter: grayscale(40%);
  transition: all 0.35s ease-in-out;
}
.partner-logo:hover {
  filter: none;
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
}


/* =========================================================
   🧠 LAB OVERVIEW SECTION
========================================================= */
#lab-overview .gradient-text {
  background: linear-gradient(90deg, #2563eb, #facc15);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#lab-overview img {
  border-radius: 1.5rem;
  transition: transform 0.6s ease;
}



/* CTA */
.reffto-btn {
  background: linear-gradient(90deg, #2563eb 0%, #facc15 100%);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
  transition: all 0.35s ease;
}

.reffto-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35);
}

/* =========================================================
   REFFTONIX SETUP CAROUSEL
========================================================= */

/* 🔒 Scoped Variables (NO :root pollution) */
#refftonix-setup {
  --bg-left: #e6f6ff;
  --bg-right: #fff7e0;
  --accent: #0b84ff;
  --card-radius: 22px;
  --card-height: 420px;
  --stage-max: 1200px;
}

/* Section */
#refftonix-setup.rtx-setup {
  width: 100%;
  padding: 80px 20px 60px;
  background: linear-gradient(
    90deg,
    var(--bg-left) 0%,
    #f6fbff 45%,
    var(--bg-right) 100%
  );
  position: relative;
  box-sizing: border-box;
  overflow: visible; /* prevent shadow clipping */
}

/* Container */
#refftonix-setup .rtx-inner {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

/* Title */
#refftonix-setup .rtx-title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #002b5c;
}

#refftonix-setup .rtx-title span {
  background: linear-gradient(90deg, #0b84ff, #7abf6b 40%, #ffb430 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#refftonix-setup .rtx-sub {
  font-size: 16px;
  color: #4b5563;
  margin-bottom: 48px;
}

/* Carousel Wrapper */
#refftonix-setup .rtx-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: clip; /* safer than hidden */
}

/* Stage */
#refftonix-setup .rtx-stage {
  width: 100%;
  max-width: var(--stage-max);
  height: var(--card-height);
  position: relative;
}

/* Cards (Desktop) */
#refftonix-setup .rtx-card {
  width: 75%;
  max-width: 1100px;
  height: var(--card-height);
  position: absolute;
  left: 50%;
  display: flex;
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--card-radius);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform-origin: center;
  box-shadow: 0 18px 50px rgba(16, 24, 40, 0.12);
}

/* States controlled by JS */
#refftonix-setup .rtx-card.center {
  opacity: 1;
  z-index: 10;
  pointer-events: auto;
}

#refftonix-setup .rtx-card.side {
  opacity: 0.9;
  z-index: 6;
  filter: blur(2px);
}

#refftonix-setup .rtx-card.far {
  opacity: 0;
  z-index: 2;
  filter: blur(6px);
}

/* Media */
#refftonix-setup .rtx-media {
  width: 50%;
  height: 100%;
}

#refftonix-setup .rtx-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content */
#refftonix-setup .rtx-copy {
  width: 50%;
  padding: 42px 48px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#refftonix-setup .rtx-copy h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #0b5bb3;
}

#refftonix-setup .rtx-copy p {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.7;
}

/* Arrows */
#refftonix-setup .rtx-arrow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  border: none;
  font-size: 28px;
  cursor: pointer;
  position: absolute;
  z-index: 20;
}

#refftonix-setup .rtx-prev { left: 2%; }
#refftonix-setup .rtx-next { right: 2%; }

/* =========================================================
   Mobile (Swiper Only)
========================================================= */
@media (max-width: 768px) {
  #refftonix-setup .rtx-stage {
    height: auto;
  }

  #refftonix-setup .rtx-card {
    position: relative !important;
    width: 100%;
    max-width: 100%;
    height: auto;
    left: auto;
    opacity: 1;
    pointer-events: auto;
    transform: none !important;
    display: flex;
    flex-direction: column;
  }

  #refftonix-setup .rtx-media {
    width: 100%;
    height: 200px;
  }

  #refftonix-setup .rtx-copy {
    width: 100%;
    padding: 20px;
    text-align: center;
  }

  #refftonix-setup .rtx-arrow {
    display: none;
  }
}

/*- =========================================================
   🦿 FOOTER
========================================================= */
footer {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
}

footer h3 {
  font-weight: 600;
}

footer h3::after {
  content: "";
  width: 40px;
  height: 2px;
  margin-top: 6px;
  display: block;
  background: linear-gradient(90deg, #1e3a8a, #facc15);
}

footer a {
  transition: 0.25s ease;
}

footer a:hover {
  color: #1e3a8a;
  transform: translateX(3px);
}
.nav-link {
  position: relative;
  transition: color 0.2s;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #2563eb;
  transition: width 0.3s;
}
.nav-link:hover::after {
  width: 100%;
}
.nav-link-active {
  color: #2563eb;
  font-weight: 600;
  position: relative;
}

/* underline */
.nav-link-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: #2563eb;
  border-radius: 2px;
}

.nav-link-active::after {
  width: 100%;
}
/* ============================
   HERO VIDEO VISIBILITY
============================ */

/* Default: hide mobile video */
.hero-video-mobile {
  display: none;
}

/* Desktop */
@media (min-width: 769px) {
  .hero-video-desktop {
    display: block;
    object-position: center;
  }

  .hero-video-mobile {
    display: none;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero-video-desktop {
    display: none;
  }

  .hero-video-mobile {
    display: block;
    object-position: center top; /* 🔥 portrait feel */
  }

  #labs-hero {
    align-items: flex-end;        /* 🔥 text bottom */
    justify-content: center;
  }
}
@media (max-width: 820px) {
  .rtx-setup {
    padding-bottom: 40px;
  }

  .swiper-pagination {
    margin-top: 12px;
  }
}
@media (max-width: 768px) {
  #refftonix-setup.rtx-setup {
    padding-bottom: 40px;
  }
}
@media (min-width: 769px) {
  #refftonix-setup .rtx-carousel {
    overflow: visible;
  }
}
@media (max-width: 768px) {
  #refftonix-setup .rtx-stage {
    height: auto !important;
  }
}

@media (max-width: 768px) {
  #refftonix-setup .rtx-card {
    width: 90%;
  }
}
#backToTop:hover {
  box-shadow: 0 0 25px rgba(250, 204, 21, 0.7);
}
@media (max-width: 360px) {
  #backToTop {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
}
/* =========================================
   REFFTONIX LABS CTA — MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 768px) {

  /* Section spacing */
  #labs-cta {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  /* Heading scale */
  #labs-cta h2 {
    font-size: 1.9rem;     /* ~text-3xl */
    line-height: 1.25;
    margin-bottom: 12px;
  }

  /* Paragraph */
  #labs-cta p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* CTA BUTTON WRAPPER */
  #labs-cta .flex {
    flex-direction: row;        /* 👈 try same line */
    flex-wrap: wrap;            /* wrap if needed */
    gap: 10px;
    justify-content: center;
  }

  /* BUTTONS — compact */
  #labs-cta a {
    padding: 10px 18px !important;
    font-size: 0.85rem !important;
    line-height: 1.2;
    border-radius: 999px;
    width: auto;                /* ❌ no full width */
    white-space: nowrap;
  }

  /* Icons smaller */
  #labs-cta a i {
    width: 16px;
    height: 16px;
  }

  /* Disable hover jump on mobile */
  #labs-cta a:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  #labs-cta a:active {
    transform: scale(0.96);
  }

  /* STATS — tighter */
  #labs-cta .stat-number {
    font-size: 1.6rem;
  }

  #labs-cta .text-xs,
  #labs-cta .text-sm {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
  }

}
/* Hide Swiper pagination on laptop & above */
@media (min-width: 1024px) {
  .swiper-pagination {
    display: none !important;
  }
}

