:root {
    --left-of-cards-height: 0px;
    --caro-duration: 0.9s;
    --caro-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --indicators-offset: 95%;
    --wrapper-width: 26.25rem;
    --speed-px-per-sec: 60;
    --mask-bg: #ffffff;
}

.main-section {
    position: relative;
}

.section-bg-image {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    flex-direction: column;
}

.section-8 {
    background:
    url('/svg/bg-img/section8.svg') center / cover no-repeat,
    url('/svg/bg-img/TTG-desktop-homepage.svg') left bottom / 520px auto no-repeat;
    background-color: transparent;

    transform: none !important;
    will-change: auto;
}

/* Live markets start*/
.live-market {
    padding-right: 0 !important;
    padding-left: 0 !important;
    margin-bottom: 2rem;
    height: 5rem;
    width: 100%;
}

#scrolling-container {
    height: 5rem;
    width: 100%;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        #0e1d02 6rem,
        #0e1d02 calc(100% - 6rem),
        transparent
    );
    mask-image: linear-gradient(
        to right,
        transparent,
        #0e1d02 6rem,
        #0e1d02 calc(100% - 6rem),
        transparent
    );
}

/* Track */
#scrolling-container .ticker {
    --gap: 1rem;
    display: flex;
    align-items: center;
    gap: var(--gap);
    width: 100%;
    will-change: transform;
}

/* Cards — mobile/tablet default: natural width, show as many as fit */
#scrolling-container .market-instrument {
    flex: 0 0 216px; /* natural width */
    max-width: none;
    height: 3.25rem;
    padding: 0.25rem 0.5rem;
    box-sizing: border-box;
    display: grid;
    border-radius: 4.125rem;
    background-color: var(--bg-transparent);
    border: 0.0625rem solid transparent;
    border-image: linear-gradient(
            93.7deg,
            rgba(255, 255, 255, 0.1152) 2.31%,
            rgba(255, 255, 255, 0.0576) 103.93%
        )
        1;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    overflow: hidden;
    pointer-events: auto;
    white-space: nowrap;
    backdrop-filter: blur(6px) saturate(120%);
}

/* Hover */
/* #scrolling-container .market-instrument:hover {
    border: 0.125rem solid var(--main-text);
    padding: 0 0.5rem !important;
} */

/* Icon + title */
#scrolling-container .market-icon {
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.75rem 1.125rem;
    border-radius: 3.4375rem;
}
#scrolling-container .market-title {
    display: inline-block;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Desktop ≥1200px: exactly 6 cards visible across */
@media (min-width: 1200px) {
    #scrolling-container .market-instrument {
        /* m = 6 → item = (100% - (m-1)*gap)/m */
        flex: 0 0 calc((100% - (var(--gap) * 5)) / 6);
        max-width: calc((100% - (var(--gap) * 5)) / 6);
    }

    #scrolling-container .market-instrument .d-flex {
        transform: scale(1.15);
        margin-left: 1.15rem;
    }
}

/* (Optional) CSS-only marquee fallback if you still duplicate items in HTML */
@keyframes ticker {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    #scrolling-container .ticker {
        animation: none !important;
        transform: none !important;
    }
}

/* trading experience */
#trading-experience {
    background-image: url(/svg/bg-img/section2-landing-bg.png);
    background-repeat: no-repeat;
    background-size: cover;
    transform: none !important;
    will-change: auto;
    background-position: top;
}

#trading-experience .borderless-btn img {
    transition: all 0.4s ease-in-out;
}

#trading-experience .borderless-btn:hover img {
    content: url("/svg/icons/dotted-arrow.svg") !important;
    transform: translateX(0.625rem);
}

#trading-experience .borderless-btn:hover {
    transform: scale(1.1);
    color: var(--main-text) !important;
}

/* second live market*/
.tabs-wrapper {
    overflow-x: auto;
    text-align: center;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    user-select: none;
    position: relative;
    width: 100%;
    margin: 0 auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.tabs-wrapper .custom-nav {
    display: inline-flex;
    flex-wrap: nowrap;
    width: max-content;
    border: 0.0625rem solid var(--border-tabs); /* 1px */
    opacity: 1;
    gap: 2rem; /* 32px */
    padding-top: 0.5rem; /* 8px */
    padding-right: 1.4375rem; /* 23px */
    padding-bottom: 0.5rem; /* 8px */
    padding-left: 0.5rem; /* 8px */
    border-radius: 62.4375rem; /* 999px */
}

.tabs-wrapper .nav-item,
.tabs-wrapper .nav-link {
    white-space: nowrap;
    font-weight: 500;
    font-size: 0.875rem; /* 14px */
    line-height: 1.5rem; /* 24px */
    letter-spacing: 0;
    border-radius: 3.875rem; /* 62px */
    color: var(--main-text);
}

.tabs-wrapper .nav-item:hover,
.tabs-wrapper .nav-link:hover,
.tabs-wrapper .nav-link:focus {
    color: var(--main-text);
}

.tabs-wrapper .nav-link:focus-visible {
    outline: 0;
    box-shadow: none;
}

.tabs-wrapper .nav-link.active {
    opacity: 1;
    gap: 0.75rem; /* 12px */
    padding-top: 0.5rem; /* 8px */
    padding-right: 1rem; /* 16px */
    padding-bottom: 0.5rem; /* 8px */
    padding-left: 1rem; /* 16px */
    border-radius: 3.875rem; /* 62px */
    background: var(--green-background);
}

#stay-safe {
    background-image: url(/svg/bg-img/stay-safe-bg.webp?v1.1);
    background-position: center;
    background-size: cover;
    opacity: 1;
    gap: 1rem; /* 16px */
    padding-top: 3rem; /* 48px */
    padding-right: 10.875rem; /* 318px */
    padding-bottom: 3rem; /* 48px */
    padding-left: 10.875rem; /* 318px */
    border-radius: 1.25rem; /* 20px */
    min-height: 21.25rem; /* 340px */
    display: flex;
    flex-direction: column;
    width: 100%;
}

#section-account {
    background-image: url(/svg/bg-img/account-bg.svg);
    background-position: center;
    background-size: cover;
    min-height: 100vh;
}

.flexibility-content {
    padding-bottom: 6rem; /* 96px */
    padding-top: 6rem; /* 96px */
    /* grid-area: 48px;  ← invalid */
    gap: 3rem; /* use this if you wanted spacing between grid items (48px) */
    background-image: url(/svg/bg-img/flexibility-bg.png);
    background-position: center;
    background-size: cover;
}

/* #hero-wrapper {
    position: relative;
    overflow: hidden;
    padding-bottom: 4.125rem; 
}

.video-fallback,
.video-desktop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1s ease-in-out;
}

.video-fallback {
    z-index: 0;
    opacity: 1;
}

.video-fallback.hidden {
    opacity: 0;
}

.video-fallback img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: translateY(0);
    will-change: transform;
    transform-origin: center top;
}

.video-desktop {
    z-index: 1;
    pointer-events: none;
}

.video-desktop.visible {
    opacity: 1;
}

#hero-wrapper > *:not(.video-fallback):not(.video-desktop) {
    position: relative;
    z-index: 2;
}


#hill {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}
.hidden {
    opacity: 0;
    pointer-events: none;
}
.visible {
    opacity: 1;
    pointer-events: auto;
}


.video-fallback {
    z-index: 0;
    transition: opacity 0.6s ease;
}
.video-desktop {
    z-index: 1;
    transition: opacity 0.6s ease;
}


.video-desktop.gone {
    z-index: -1;
} */

/* .hero-bg {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}





 */

.hero-bg {
  position: relative;
  width: 100%;
  height: clamp(78vh, 80vh, 70vh);
  overflow: hidden;
  perspective: 1000px;
}


.bg-layer {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease-out;
  display: block;
}


.stars-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: visible;
  transform: translateY(0)!important;
}


.iceberg-wrapper {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 2;
  transform: translateY(130px) ;
}



.mountain-cards.behind {
    position: absolute;
    z-index: 1;
}


.mountain-cards.front {
    position: absolute;
    z-index: 3; 
    display: flex;
    gap: 2rem;
}

.mountain-cards {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.mountain-cards .card-item {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15)!important;
  background-color: rgba(255, 255, 255, 0.15)!important;
  border-image: linear-gradient(
    93.7deg,
    rgba(255, 255, 255, 0.4152) 2.31%,
    rgba(255, 255, 255, 0.0576) 103.93%
  ) 1!important;
  -webkit-mask-image: -webkit-radial-gradient(white, black)!important;
  backdrop-filter: blur(4px) saturate(140%)!important;
  -webkit-backdrop-filter: blur(4px) saturate(140%)!important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25)!important;
  overflow: hidden;
  pointer-events: auto;
  white-space: nowrap;
  will-change: transform;
  transition: transform 0.2s ease-out;
}

.hero-bg .bg-layer,
.mountain-cards .card-item {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: none; 
  visibility: hidden;
}


@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mountain-cards .card-item {
    transition: transform 1s ease-out;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform;
  opacity: 0;
}



@keyframes gentleFloatUp {
  0% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
  100% { transform: translateY(0); }
}

@keyframes gentleFloatDown {
  0% { transform: translateY(0); }
  50% { transform: translateY(14px); }
  100% { transform: translateY(0); }
}


.mountain-cards .card-item {
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-duration: 4.8s;
}


.mountain-cards .first-card {
  animation-name: gentleFloatUp;
  animation-delay: 0s;
}
.mountain-cards .second-card {
  animation-name: gentleFloatDown;
  animation-delay: 1s;
}
.mountain-cards .third-card {
  animation-name: gentleFloatUp;
  animation-delay: 2s;
}
.mountain-cards .fourth-card {
  animation-name: gentleFloatDown;
  animation-delay: 3s;
}
.mountain-cards .fifth-card {
  animation-name: gentleFloatUp;
  animation-delay: 4s;
}


.mountain-cards.behind .first-card {
  top: 31%;
  left: 58%;
}

.mountain-cards.behind .second-card {
  top: 32%;
  left: 34%;
}


.mountain-cards.front .third-card {
  top: 56%;
  left: 20%;
}

.mountain-cards.front .fourth-card {
  top: 52%;
  left: 50%;
}

.mountain-cards.front .fifth-card {
  top: 44%;
  left: 74%;
}

.mountain-cards .first-card {
  width: clamp(4.3em, 5.5em, 5.8em);
  height: clamp(4.3em, 5.5em, 5.8em);
  border-radius: clamp(1em, 1.5em, 1.25em);
  padding: clamp(0.8em, 1em, 1em) clamp(1em, 1.5em, 1.3em);
}

.mountain-cards .second-card {
  width: clamp(5em, 5.5em, 5.9em);
  height: clamp(5em, 5.5em, 5.9em);
  border-radius: clamp(1.1em, 2em, 1.6em);
  padding: clamp(0.9em, 1.2em, 1.1em) clamp(1.2em, 1.8em, 1.4em);
}

.mountain-cards .third-card {
  width: clamp(5.3em, 5.5em, 6em);
  height: clamp(5.3em, 5.5em, 6em);
  border-radius: clamp(1.1em, 2em, 1.6em);
  padding: clamp(1em, 1.5em, 1.1em) clamp(1.4em, 2.5em, 1.7em);
}

.mountain-cards .fourth-card {
  width: clamp(5.8em, 6em, 6.3em);
  height: clamp(5.8em, 6em, 6.3em);
  border-radius: clamp(1.3em, 2.3em, 1.8em);
  padding: clamp(1.1em, 1.8em, 1.2em) clamp(1.5em, 2.8em, 1.9em);
}

.mountain-cards .fifth-card {
  width: clamp(4.3em, 4em, 5em);
  height: clamp(4.3em, 4em, 5em);
  border-radius: clamp(1em, 1.6em, 1.25em);
  padding: clamp(0.9em, 1.3em, 1em) clamp(1.2em, 1.9em, 1.3em);
}



.mountain-cards .first-card img {
  width: clamp(2.1em, 2.3em, 2.8em);
  height: auto;
}

.mountain-cards .second-card img {
  width: clamp(2.4em, 2.7em, 3em);
  height: auto;
}

.mountain-cards .third-card img {
  width: clamp(2.2em, 2.5em, 2.8em);
  height: auto;
}

.mountain-cards .fourth-card img {
  width: clamp(2.3em, 3em, 3.4em);
  height: auto;
}

.mountain-cards .fifth-card img {
  width: clamp(2.5em, 2.8em, 3.2em);
  height: auto;
}



@media (max-width:1280px){
  .iceberg-wrapper {
    bottom: 8rem;
  }

  .mountain-cards.behind .first-card {
    top: 16%;
    left: 58%;
  }

  .mountain-cards.behind .second-card {
    top: 16%;
    left: 34%;
  }

  .mountain-cards.front .third-card {
    top: 49%;
    left: 19%;
  }

  .mountain-cards.front .fourth-card {
    top: 42%;
    left: 50%;
  }

  .mountain-cards.front .fifth-card {
    top: 33%;
    left: 74%;
  }
}

@media (max-width:991.98px){
  .mountain-cards .card-item {
    animation: none !important;
    transform: translateY(0) !important;
  }

  .mountain-cards.behind .first-card {
    top: 9%;
    left: 58%;
  }

  .mountain-cards.behind .second-card {
    top: 9%;
    left: 34%;
  }

  .mountain-cards.front .third-card {
    top: 27%;
    left: 19%;
  }

  .mountain-cards.front .fourth-card {
    top: 24%;
    left: 50%;
  }

  .mountain-cards.front .fifth-card {
    top: 19%;
    left: 74%;
  }

  #hero-landing .col-lg-5 {
    padding-left: 12.944vw;
    padding-right: 12.944vw;
  }


  #hero-landing .col-lg-7 {
    padding-left: 0rem;
    padding-right: 0rem;
  }


  #hero-landing .section-full {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 786px) {
  #hero-landing .col-lg-5 {
    padding-left: 6.944vw;
    padding-right: 6.944vw;
  }

}

@media (max-width: 575.98px) {

  #hero-landing .col-lg-5 {
    padding-left: 2.5rem !important;
    padding-right: 2.5rem !important;
  }

  .mountain-cards .card-item {
    animation: none !important;
    transform: translateY(0) !important;
  }

  .mountain-cards .card-item {
    width: 4em !important;
    height: 4em !important;
    padding: 0.6em 0.8em !important;
    border-radius: 0.8em !important;
  }


  .mountain-cards .card-item img {
    width: 1.9em !important;
    height: auto !important;
  }


  .mountain-cards.front,
  .mountain-cards.behind {
    gap: 1rem !important;
  }

  .mountain-cards.behind .first-card {
    top: 31%;
    left: 54%;
  }

  .mountain-cards.behind .second-card {
    top: 35%;
    left: 31%;
  }

  .mountain-cards.front .third-card {
    top: 55%;
    left: 13%;
  }

  .mountain-cards.front .fourth-card {
    top: 53%;
    left: 45%;
  }

  .mountain-cards.front .fifth-card {
    top: 43%;
    left: 74%;
  }

  .mountain-cards .third-card img,
  .mountain-cards .fourth-card img,
  .mountain-cards .second-card img {
    width: 4rem;
    height: 3rem;
  }

  .hero-bg {
    height: 48vh;
  }

  .iceberg-wrapper {
    bottom: 0;
  }
}

#hero-landing{
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero-landing::before{
    content: "";
    position: absolute;
    top: -4.25rem;
    left: 45%;
    transform: translateX(-50%);
    width: 135%;
    height: 62%;
    background: radial-gradient(ellipse at top, #219e11 -20%, rgba(33,158,17,0) 70%);
    z-index: 0;
}

@media (max-width: 991px) {
    #stay-safe {
        padding: 2rem !important;
    } /* 32px */
}

@media (max-width: 1200px) {
    #stay-safe {
        padding: 2.8125rem !important;
    } /* 45px */
}

/* Fixed 450px “window” */
/* .scroller-wrapper{
  position: relative;
}

.scroller-viewport{
  height: 34.375rem;                                    
  max-height: 34.375rem;                                
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: none; 
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

.slides{ will-change: transform; }

.slide{
  height: 28.125rem;                                       
  max-height: 28.125rem;                                  
  display: flex;
  align-items: center;
  will-change: opacity, filter, transform;
  transition: opacity .18s linear, filter .18s linear;
}


.media-wrap{ position: relative; display: inline-block; }

.media-img{
  display: block;
  width: 100%;
  height: 20rem !important;                               
  border-top-right-radius: 2rem;                         
  border-bottom-right-radius: 2rem;                        
}

.number-badge{
  position: absolute;
  top: 50%;
  right: -5.8125rem;                                      
  transform: translateY(-50%);
  pointer-events: none;
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 7.5rem);                     
  color: var(--green-background, #40d39b);
  text-shadow: 0 0.5rem 1.5rem rgba(0,0,0,.25);            
}


.steps-dots{
  position: absolute;
  top: 45%;
  right: 3.75rem;                                        
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;                                         
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 5;
}

.steps-dots .dot{
  width: 0.25rem;                                       
  height: 3.25rem;                                         
  border-radius: 0.25rem;                                  
  background: rgba(255,255,255,.45);
  box-shadow: 0 0 0 0.0625rem rgba(0,0,0,.12) inset;       
  transition: transform .25s ease, background-color .25s ease, opacity .25s ease;
  cursor: pointer;
}

.steps-dots .dot.is-active{
  background: var(--green-background, #40d39b);
  transform: scaleX(1.12);
}

@media (max-width: 991.98px){
  .scroller-viewport, .slide{ height: 26.125rem; max-height: 26.125rem; } 
}

/
.scroller-wrapper{
  position: sticky;
  top: 0;
  height: 33.125rem;                                       
  overflow: hidden;
}


@media (max-width: 600px){
    .number-badge {
      right: -2.3rem;
  }

  .media-img{
    height: 15rem!important;
  }

  .steps-dots .dot{
    height: 2rem;
  }

  .steps-dots{
        right: 1.75rem;
  }

  .scroller-viewport .max-p-w-small {
    max-width: 20.875rem !important;
    margin-left: 1rem;
  }

  .scroller-viewport .max-p-w-small h4{
    padding-left:  1rem;
  }
} */

.number-badge {
    font-weight: 900;
    font-size: 3.125rem;
    color: var(--green-background, #40d39b);
    margin-right: 1.875rem;
}

.trade-sec {
    padding-right: 6rem;
    padding-left: 6rem;
}

.trade-img {
    width: 37.8125rem;
    height: 30rem;
    border-radius: 2rem;
}

.icon-circle-container-white {
    width: 4rem;
    height: 4rem;
    opacity: 1;
    gap: 0.625rem;
    border-radius: 3.75rem;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 0.0625rem solid var(--main-text);
}

.opacity-6{
  opacity: .6;
}

@media(min-width: 2000px){
  #scrolling-container .market-icon img{
    width: 2.75rem;
  }
  
  .iceberg-wrapper{
    bottom: -7rem;
  }
}

@media(min-width: 2433px){
  #scrolling-container .market-icon img{
    width: 3.75rem;
  }
}


@media(min-width: 2950px){
  #scrolling-container .market-icon img{
    width: 4.75rem;
  }

}

@media(min-width: 3150px){
  #scrolling-container .market-icon img{
    width: 5.75rem;
  }

  .iceberg-wrapper{
    bottom: -8rem;
  }
}

@media(min-width: 4000px){

  #scrolling-container .market-icon img{
    width: 8.75rem;
  }

}