body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: #f5f7fa;
}

/* HERO SECTIONS */
.hero,
.hero-lender {
  min-height: 100vh;
  overflow: hidden;
  padding: 0 0 10px;
}

.hero {
  background: url("/static/images/arc bg.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-lender {
  background: url("/static/images/lender bg.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  height: 50px;
  padding: 0 30px;
  position: relative;
  z-index: 1000;
}

.logo {
  width: 120px;
  height: 30px;
  background-image: url("/static/images/LOGO.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* SERVICES BUTTON */

.services-btn {
  background: white;
  border: 1px solid #cfcfcf;
  padding: 10px 14px;
  border-radius: 20px;
  margin-right: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  color: #6c6c6c;
}

.services-dropdown {
  position: relative;
}

/* DROPDOWN */

.dropdown-menu {
  position: absolute;
  top: 40px;
  right: 0;
  width: 180px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  display: none;
  overflow: hidden;
}

.services-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 14px;
  border-bottom: 1px solid #e5e5e5;
  cursor: pointer;
}

.dropdown-item img {
  width: 18px;
}

.dropdown-item:hover {
  background: #f5f7fa;
}

/* BUTTONS */

.login-btn,
.more-info-btn {
  margin-left: auto;
  background: linear-gradient(90deg, #39b87f, #1b9a6b);
  color: white;
  border: none;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  display: none;
}

/* CONTENT */

.hero-content,
.hero-content-lender {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  height: calc(100vh - 50px);
}

/* LEFT TEXT */

.hero-left,
.hero-left-lender {
  width: 42%;
  padding-left: 60px;
}

.hero-left h1,
.hero-left-lender h1 {
  font-size: 36px;
  line-height: 1.25;
  color: #1e3d34;
}

.hero-left span {
  color: #158a68;
}

.hero-left p,
.hero-left-lender p {
  margin-top: 16px;
  font-size: 15px;
  color: #444;
}

/* RIGHT SIDE */

.hero-right,
.hero-right-lender {
  width: 56%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
}

/* VIDEOS */

.hero-video {
  width: 650px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0px 20px 40px rgba(0, 0, 0, 0.15));
  background: transparent;
}

.hero-video-lender {
  width: 460px;
  height: 560px;
  object-fit: contain;
  filter: drop-shadow(0px 10px 40px rgba(0, 0, 0, 0.15));
  background: transparent;
}

/* FEATURES */

.hero-features {
  display: flex;
  gap: 28px;
  margin-top: 18px;
  align-items: center;
}

.feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #2f3e3a;
}

.feature img {
  width: 18px;
  height: 18px;
}

.feature span {
  color: #444;
}

/* LOGIN CARD */

.login-card {
  width: 340px;
  background: white;
  border-radius: 22px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.login-header {
  position: relative;
  height: 100px;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
}

.login-title {
  position: absolute;
  left: 22px;
  top: 18px;
  color: white;
  font-weight: 600;
  font-size: 16px;
}

.login-logo {
  position: absolute;
  right: 20px;
  top: 14px;
  width: 34px;
}

.login-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-body input,
.login-body textarea {
  padding: 10px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  font-size: 13px;
}

.login-body textarea {
  resize: none;
}

/* OTP */

.send-otp-btn {
  background: linear-gradient(90deg, #39b87f, #1b9a6b);
  border: none;
  color: white;
  padding: 8px;
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
  margin-top: 6px;
}

.otp-box {
  display: flex;
  gap: 10px;
}

.otp-box input {
  width: 30px;
  height: 30px;
  text-align: center;
  font-size: 16px;
}

.otp-footer {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #777;
}

#resendOtpBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.resend-btn {
  background: #eee;
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
}

.login-submit {
  margin-top: 10px;
  background: linear-gradient(90deg, #39b87f, #1b9a6b);
  border: none;
  color: white;
  padding: 12px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
}

/* .login-card-container{
    display:none;
    width:100%;
    height:100%;
    justify-content:center;
    align-items:center;
} */
.login-card-container {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 10px;
  left: auto;
  right: 70px;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: 55px;
}

#lottieLender svg,
#lottieArc svg {
  width: 100% !important;
  height: 100% !important;
}

.lottie-wrapper {
  position: relative;
  width: 460px; /* same as your video */
  height: 560px; /* same as your video */
  margin: auto;
}

/* watermark cover + button */

/* FIX overlay positioning */
.lottie-overlay {
  position: absolute;
  bottom: 20px; /* inside animation */
  left: 50%;
  transform: translateX(-50%);

  background: linear-gradient(90deg, #39b87f, #1b9a6b);
  color: white;

  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;

  z-index: 10;
}

#heroAnimation,
#arcAnimation {
  position: relative;
}

.hero-video,
.hero-video-lender {
  position: relative;
  z-index: 1;
}

.gif-box{
    width:100%;
    max-width:764px;   /* will override later */
    aspect-ratio: 764 / 568;
    position:relative;
    margin:auto;
}

/* BACKGROUND */
.layer-bg{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    object-fit:contain;
    z-index:1;
}

/* GIF (ALWAYS ABOVE) */
.layer-gif{
    position:absolute;
    z-index:5 !important;   /* force top */
    pointer-events:none;
}

/* LENDER */
/* .lender-gif {
  background-image:
    url("/static/images/lender_background.svg"), url("/static/gif/lender.gif");

  background-size: cover, contain;
} */

/* ARC */
/* .arc-gif {
  background-image:
    url("/static/images/arc_background.svg"), url("/static/gif/arc_.gif");

  background-size: cover, contain;
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
} */

#lenderGif {
  max-width: 764px;
  aspect-ratio: 764 / 568;
}

#lenderGif .layer-gif {
  top: 18%;
  left: 20%;
  width: 60%;
}

#arcGif{
    max-width:462px;
    aspect-ratio: 462 / 568;
}

/* FIX ARC POSITION */
#arcGif .layer-gif{
    top:15%;
    left:12%;
    width:75%;
}

.gif-only{
    width:100%;
    max-width:460px;
    margin:auto;
    display:flex;
    justify-content:center;
    align-items:center;
}

.gif-img{
    width:100%;
    height:auto;
    object-fit:contain;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* SECTION HEIGHT */

section {
  min-height: 100vh;
}

/* HERO VISIBILITY CONTROL */

.arc-hidden {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  inset: 0;
  transition: opacity 0.5s ease;
}

.arc-visible {
  visibility: visible;
  opacity: 1;
  position: relative;
}

/* CONTACT FORM DESIGN */

.contact-card {
  margin-top: -25px;
}

.contact-header {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.contact-logo {
  width: 120px;
}

.back-arrow {
  position: absolute;
  left: 18px;
  top: 28px;
  width: 22px;
  cursor: pointer;
}

.contact-body {
  padding: 15px;
  max-width: 340px;
}

.contact-body label {
  font-size: 13px;
  color: #333;
}

.contact-body input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #dcdcdc;
  font-size: 13px;
}

.contact-footer {
  text-align: center;
  font-size: 12px;
  color: #2b9e74;
  margin-top: 12px;
}

.req {
  color: red;
}

/* =========================
   TABLET (iPad - 1024px)
========================= */
@media (max-width: 1024px) {
  .hero-content,
  .hero-content-lender {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 20px;
    height: auto;
  }

  .hero-left,
  .hero-left-lender {
    width: 100%;
    padding-left: 20px;
  }

  .hero-right,
  .hero-right-lender {
    width: 100%;
    margin-top: 20px;
  }

  .hero-left h1 {
    font-size: 30px;
  }

  .hero-video {
    width: 500px;
  }

  .hero-video-lender {
    width: 380px;
    height: auto;
  }

  .hero-features {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  .login-card-container {
    position: static;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
  }

  .gif-box {
    max-width: 380px;
  }

  .layer-gif {
    top: 17%;
    left: 15%;
    width: 70%;
  }

  #lenderGif {
    max-width: 500px;
  }

  #arcGif {
    max-width: 360px;
  }

  #lenderGif .layer-gif {
    top: 19%;
    left: 18%;
    width: 64%;
  }

  #arcGif .layer-gif {
    top: 17%;
    left: 14%;
    width: 72%;
  }
}

/* =========================
   SMALL TABLET (768px)
========================= */
@media (max-width: 768px) {
  .navbar {
    padding: 0 15px;
  }

  .logo {
    width: 100px;
  }

  .services-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  hero-left,
  .hero-left-lender {
    padding-left: 0; /* no gap on mobile */
  }

  .hero-left h1 {
    font-size: 26px;
  }

  .hero-left p {
    font-size: 14px;
  }

  .hero-video {
    width: 100%;
  }

  .hero-video-lender {
    width: 100%;
  }

  .hero-features {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .login-card {
    width: 90%;
    max-width: 320px;
  }

  .login-body {
    padding: 15px;
  }

  .gif-box {
    max-width: 320px;
  }

  .layer-gif {
    top: 18%;
    left: 14%;
    width: 72%;
  }

  #lenderGif {
    max-width: 380px;
  }

  #arcGif {
    max-width: 300px;
  }

  #lenderGif .layer-gif {
    top: 20%;
    left: 17%;
    width: 66%;
  }

  #arcGif .layer-gif {
    top: 18%;
    left: 13%;
    width: 74%;
  }
}

/* =========================
   MOBILE (480px)
========================= */
@media (max-width: 480px) {
  .navbar {
    padding: 0 10px;
    height: 50px;
  }

  .logo {
    width: 90px;
  }

  /* hide services dropdown hover issue on mobile */
  .services-dropdown:hover .dropdown-menu {
    display: none;
  }

  .dropdown-menu {
    right: 0;
    width: 160px;
  }

  .hero {
    padding: 10px;
  }

  .hero-left h1 {
    font-size: 22px;
    line-height: 1.3;
  }

  .hero-left p {
    font-size: 13px;
  }

  .hero-video {
    width: 100%;
  }

  .hero-video-lender {
    width: 100%;
    height: auto;
  }

  .feature {
    font-size: 12px;
  }

  .feature img {
    width: 16px;
    height: 16px;
  }

  .login-card {
    width: 95%;
    border-radius: 16px;
  }

  .login-header {
    height: 80px;
  }

  .login-title {
    font-size: 14px;
  }

  .login-body input {
    font-size: 12px;
    padding: 8px;
  }

  .send-otp-btn,
  .login-submit {
    font-size: 13px;
    padding: 10px;
  }

  .otp-box input {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .login-card-container {
    padding-top: 10px;
    right: 0;
    justify-content: center;
  }

  .back-arrow {
    width: 18px;
    top: 22px;
  }

  .contact-logo {
    width: 100px;
  }

  .gif-box {
    max-width: 260px;
  }

  .layer-gif {
    top: 20%;
    left: 13%;
    width: 74%;
  }

  #lenderGif {
    max-width: 280px;
  }

  #arcGif {
    max-width: 240px;
  }

  #lenderGif .layer-gif {
    top: 22%;
    left: 16%;
    width: 68%;
  }

  #arcGif .layer-gif {
    top: 20%;
    left: 12%;
    width: 76%;
  }
}
