/* Updated Card Styles */
.card-wrapper {
  background: var(--color-white-true);
  border-radius: 12px;
  padding: 1.5rem;
  /*border: 1px solid var(--color-light-gray);*/
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /*cursor: pointer;*/
  /*align-content: center;*/
}

.card-wrapper.linkable {
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.linkable::after {
  content: "\1433";
  position: absolute;
  top: 45%;
  right: 40px;
  color: var(--color-light-gray);
  opacity: 0.25;
  transition: transform 0.6s ease, opacity 0.3s ease;
  transform: translateX(-50px);
}

.linkable:hover::after {
  opacity: 0.5;
  transform: translateX(0px);
}

.card-wrapper.linkable:hover {
  transform: translateY(-5px);
  box-shadow: 0px 5px 15px rgba(78, 36, 115, 0.35);
  /*background-color: rgba(78, 36, 115, 0.03);*/
  transition: all 0.3s ease-in-out;
}

.card-wrapper.linkable:hover .learn-more-card p {
  color: var(--color-secondary);
}

.invert {
  color: var(--color-white);
}

.invert h1,
.invert h2,
.invert h3 {
  opacity: 0.8;
}

.invert > h1,
.invert > h2,
.invert > h3 {
  color: var(--color-white);
}

.headliner-card {
  display: flex;
  justify-content: center;

  align-items: center;
  text-align: center;
  line-height: 2em;
}

.card-wrapper.invert {
  background: var(--gradient-primary);
}

.card-wrapper.invert.black {
  background: var(--color-text);
}

.card-wrapper.invert .card-title {
  color: var(--color-white);
}

.card-wrapper.invert p,
.card-wrapper.invert strong {
  color: var(--color-white);
}

.card-header {
  padding-top: 16px;
  margin-bottom: var(--space-xs);
}

.card-title {
  padding: var(--space-sm) 0;
}

.card-title-sm {
  font-size: 18px;
  line-height: 24px;
}

.title-icon-wrap {
  display: flex;
  gap: 8px;
}

@media (max-width: 480px) {
  .card-products .card-title-sm {
    font-size: 24px;
  }
}

.card-footer {
  margin-top: var(--space-md);
}

.card-wrapper.invert a {
  color: var(--color-light-gray);
}

/* Card List */

.card-list-items {
  list-style-type: circle; /* Circle bullets */
  list-style-position: outside; /* Bullets outside content flow */
  padding-left: 1em; /* Proper indentation (adjust as needed) */
  margin-top: var(--space-sm);
}

.card-list li {
  margin-bottom: 8px;
  padding-left: 0.5em;
}

.description-extra-small li {
  padding-bottom: var(--space-xs);
  font-weight: 400;
}

.card-list-items li {
  list-style: disc;
}

.card-list-items li::marker {
  color: var(--color-secondary);
}


.card-tags{
  width: 100%;
  display: flex; 
  gap: 12px;
  flex-wrap: wrap;
  margin-top: var(--space-sm);
}

.card-tags-item{
  flex-grow: 1;
  background: var(--color-white-true);
  border-radius: 12px;
  padding: 1rem;
  /*border: 1px solid var(--color-light-gray);*/
}

.card-tags-item:nth-child(1){
  background-color: #d4fc79;
}
.card-tags-item:nth-child(2){
  background-color: #a59be5;
}
.card-tags-item:nth-child(3){
  background-color: #e6a9d3;
}

/* */

.card-image {
  width: 100%;
  max-width: 350px;
  
}

/* Products */

.card-products {
  width: 300px;
  max-width: 400px;
  min-width: 250px;
  padding-top: 24px;
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
  position: relative;
}

.card-products::after {
  content: "\1433";
  position: absolute;
  top: 40px;
  right: 40px;
  color: var(--color-text);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.3s ease;
  transform: translateX(-50px);
}

.card-products:hover::after {
  opacity: 0.5;
  transform: translateX(0px);
}

.card-products p {
  align-self: start;
}

/*
.card-products img {
  width: 64px;
}*/

/* Products Layout */

.products-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
}

.products-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: var(--space-xl);
}

.product-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.product-icon {
  /*display: block;*/
  width: 44px;
  height: auto;
}

.product-img {
  max-width: 85%;
  transition: opacity 0.3s ease;
  border-radius: 8px;
  /*box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);*/
  justify-content: center;
  align-self: center;
}

.product-img-mobile {
  margin: 0 auto;
  display: none;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
  .products-container {
    grid-template-rows: 1fr 1fr;
  }

  .products-wrap {
    justify-content: flex-start;
  }

  .card-products.active {
    transform: none;
    box-shadow: none;
  }
}

@media (min-width: 1080px) {
  .card-products.active {
    transform: none;
    box-shadow: none;
  }
}

@media (min-width: 1024px) {
  .products-container {
    grid-template-columns: 650px 1fr;
    align-items: center;
    grid-template-rows: none;
  }
}

@media (max-width: 1080px) {
  .card-products {
    width: 100%;
    margin: 8px 0;
  }

  .products-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .products-wrap {
    gap: 12px;
    justify-content: center;
  }

  .product-image-container {
    padding: 0;
  }

  .product-img-mobile {
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
    display: block;
    width: 100%;
  }

  .product-image-container {
    display: none;
  }
}

/* Active card styling */
.card-products.active {
  transform: translateY(-5px);
  box-shadow: 0px 5px 15px rgba(78, 36, 115, 0.35);
  /*background-color: rgba(78, 36, 115, 0.03);*/
  transition: all 0.3s ease;
}

/* Smooth image transition */
.product-img {
  transition: opacity 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card-products {
    margin: 8px 0;
  }
  .card-products.active {
    transform: none;
    box-shadow: none;
  }
}

.products-bottom-wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.products-bottom-card {
  width: 100%;
  justify-items: center;
  text-align: center;
}

@media (min-width: 1024px) {
  .products-bottom-wrap {
    flex-wrap: nowrap;
  }

  .products-bottom-card {
    max-width: 446px;
  }
}

/* Individual Cards Layouts*/

.procfeatures-wrap {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.procfeatures-card {
  overflow: hidden;
}

@media (min-width: 768px) {
  .procfeatures-wrap {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .procfeatures-card {
    width: 100%;
  }
}

/* Individual Cards Layouts*/

.reachfeatures-wrap {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.reachfeatures-card {
  overflow: hidden;
  gap: 48px;
}

.card-apm {
  padding-top: 24px;
  display: grid;
  align-items: center;
}

.learn-more-card p {
  text-decoration: none;
}

.learn-more-card p {
  margin-top: var(--space-md);
}

.learn-more-card a,
.learn-more-card p {
  color: var(--color-gray);
  transition: var(--transition);
}

.learn-more-card a:hover {
  color: var(--color-secondary);
}

.card-row-binance {
  display: grid;
  grid-template-rows: auto 50px 1fr 50px;
  gap: 12px;
  justify-items: center;
  align-items: center;
}

.reachfeatures-card.last {
  max-width: 891px;
}

@media (min-width: 768px) {
  .reachfeatures-wrap {
    grid-template-columns: repeat(3, 1fr);
  }
  .reachfeatures-card {
    width: 100%;
  }

  .reachfeatures-card.card-span {
    grid-column: 1 / 4;
  }

  .card-apm {
    grid-template-columns: auto 1fr;
  }
}

.coins-group {
  display: flex;
  gap: var(--space-xs);
  justify-content: center;
  padding: var(--space-sm) 0;
}

.coins-group-item {
  width: 44px;
}

.features-wrap {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}

.features-card.last {
  display: flex;
  gap: 24px;
  align-items: center;
  /*justify-content: center;*/
  text-align: center;
  flex: 0 0 calc(66.66% - 5px);
  flex-wrap: wrap;
}

.features-card.last {
  max-width: unset;
  justify-items: center;
}

@media (max-width: 800px) {
  .features-wrap {
    display: grid;
    justify-items: center;
  }

  .features-card.last {
    text-align: center;
  }
}

.features-card {
  width: 100%;
  min-height: 200px;
  max-width: 446px;
  flex: 0 0 calc(33.33% - 11px);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  gap: 0px;
}

.bottom-card {
  width: 100%;
  min-height: 200px;
  max-width: 446px;

  box-shadow: var(--shadow-sm);
  overflow: hidden;
  gap: 0px;
}

@media (min-width: 1024px) {
  .features-card {
    flex-wrap: nowrap;
  }

  .features-card {
    /*max-width: 446px;*/
    flex: 0 0 calc(33.33% - 11px);
  }

  .card .features-card {
    max-width: 446px;
  }
}

.card-header-group {
  display: flex;
  gap: 16px;
  align-items: center;
}

.section-header-image-wrap {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 50% 1fr;
}

.image-wrap {
  display: flex;
  gap: 24px;
  max-width: 600px;
  justify-content: center;
  align-self: center;
  justify-self: center;
}

.image-wrap img {
  width: 100%;
}

.image-wrap .sm-img {
  width: 70%;
}

.image-wrap .xs-img {
  width: 50%;
}

.logo-group {
  display: flex;
  /*flex-wrap: wrap;*/
  gap: 24px;
  max-width: 250px;
  justify-content: center;
  align-self: center;
  justify-self: center;
}

.logo-group img {
  width: 150px;
}

.logo-group .wide-img {
  max-width: 200%;
  width: 170%;
}

@media (max-width: 800px) {
  .section-header-image-wrap {
    gap: var(--space-xl);
    grid-template-rows: auto auto;
    grid-template-columns: unset;
    justify-content: center;
  }
  .section-header-image-wrap .card-header {
    text-align: center;
  }

  .logo-group .wide-img {
    max-width: 135%;
  }
 .image-wrap .sm-img {
  width: 100%;
}
}

.normal-img {
  max-width: 600px;
}

/* Stats Cards */
.stats-section {
  margin-top: var(--space-xl);
}

.stats-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.stat-card {
  /*background: var(--color-white-true);*/
  border-radius: 16px;
  padding: 40px 32px;
  /*width: calc(50% - 20px);
  min-width: 200px;*/
  text-align: center;
  /*box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);*/
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.stat-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-value {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  text-transform: capitalize;
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-primary);
  line-height: 1;
  height: 58px;
  display: flex;
  justify-content: left;
  align-items: left;
}

.stat-label {
  font-size: 24px;
  color: var(--color-gray);
  font-weight: 500;
  text-transform: capitalize;
  text-align: left;
}

.plus-sign {
  color: var(--color-secondary);
  margin-left: 2px;
  font-weight: 400;
}

@media (max-width: 1024px) {
  .stat-card {
    width: calc(33.33% - 16px);
  }
}

@media (max-width: 768px) {
  .stat-card {
    width: calc(50% - 12px);
    padding: 24px 0px;
  }

  .stat-value {
    font-size: 36px;
    height: 44px;
  }
  .stats-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .stat-card {
    width: 100%;
    max-width: 300px;
    justify-items: center;
  }
  .stats-container {
    justify-content: center;
  }

  .stat-value {
    font-size: 64px;
    margin-bottom: 32px;
  }

  .stat-label {
    text-align: center;
  }
}

/* Animation delays */
.stat-card:nth-child(1) {
  transition-delay: 0.1s;
}
.stat-card:nth-child(2) {
  transition-delay: 0.2s;
}
.stat-card:nth-child(3) {
  transition-delay: 0.3s;
}
.stat-card:nth-child(4) {
  transition-delay: 0.4s;
}
.stat-card:nth-child(5) {
  transition-delay: 0.5s;
}

/**/

.card-table-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-light-gray);
}

/*  */

.card-tariffs {
  display: grid;
  grid-template-columns: 33% auto;
  gap: var(--space-xl);
  padding-right: var(--space-xl);
  align-items: center;
}

@media (max-width: 480px) {
  .card-tariffs {
    display: block;
    gap: var(--space-xl);
    padding-right: 0;
  }

  .card-table-item {
    flex-wrap: nowrap;
    width: 100%;
  }
  .card-wrapper .card-table-item {
    text-align: left;
  }

  .card-table-item .card-title:nth-child(2) {
    text-align: right;
  }
}

/**/

.narrow-card {
  display: flex;
  gap: 24px;
  align-items: center;
  min-height: 150px;
  box-shadow: var(--shadow-sm);
}

.narrow-card b {
  color: var(--color-secondary);
  font-weight: 600;
}

.narrow-card .product-icon {
  width: 24px;
}

.card-wrapper.accent {
  background: var(--color-white-true);
}

/**/
.line-mark {
  min-width: 1px;
  width: 1px;
  height: 100%;
  background-color: var(--color-light-gray);
}

/* */
stack-cards {
  display: block;
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  touch-action: pan-y;
}

stack-cards.scroll-locked {
  touch-action: none;
}

body.scroll-locked {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

stack-cards .card-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

stack-cards .card {
  position: absolute;
  width: 85%;
  /*max-width: 600px;*/
  height: 75%;
  max-height: 500px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #333;
  transition: all 0.45s cubic-bezier(0.28, 0.55, 0.2, 1);
  left: 50%;
  transform: translateX(-50%);
  will-change: transform, opacity;
  padding: 20px;
  box-sizing: border-box;
  cursor: grab;
  user-select: none;
}

stack-cards .card:active {
  cursor: grabbing;
}

/* Card colors */
stack-cards .card:nth-child(1) {
  background: #ff9a9e;
}
stack-cards .card:nth-child(2) {
  background: #fad0c4;
}
stack-cards .card:nth-child(3) {
  background: #fbc2eb;
}
stack-cards .card:nth-child(4) {
  background: #a6c1ee;
}
stack-cards .card:nth-child(5) {
  background: #d4fc79;
}

/* Active card */
stack-cards .card.active {
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
  z-index: 10;
  opacity: 1;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Previous card */
stack-cards .card.previous {
  top: 50%;
  transform: translate(-50%, -50%) scale(0.94);
  opacity: 0.7;
  z-index: 5;
  filter: blur(0.8px);
  transition-delay: 0.05s;
}

/* Inactive cards */
stack-cards .card:not(.active):not(.previous) {
  top: 150%;
  transform: translateX(-50%) scale(0.9);
  opacity: 0;
  z-index: 1;
}

/* Navigation dots */
stack-cards .nav-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  z-index: 100;
  gap: 12px;
  padding: 8px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
}

stack-cards .nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

stack-cards .nav-dot:hover {
  transform: scale(1.3);
  background: rgba(255, 255, 255, 0.9);
}

stack-cards .nav-dot.active {
  background: white;
  transform: scale(1.4);
  border-color: rgba(255, 255, 255, 0.9);
}

/* Progress indicator */
stack-cards .progress-bar {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 600px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  z-index: 100;
  overflow: hidden;
}

stack-cards .progress-fill {
  height: 100%;
  width: 0%;
  background: white;
  transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 2px;
}

/* Enhanced scroll hint */
stack-cards .scroll-hint {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 0.95rem;
  text-align: center;
  opacity: 0.9;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.25);
  padding: 12px 24px;
  border-radius: 30px;
  transition: all 0.5s ease;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

stack-cards .scroll-hint.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
}

stack-cards .scroll-hint svg {
  width: 20px;
  height: 20px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-2px);
  }
}

/* Touch feedback */
stack-cards .touch-feedback {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  z-index: 200;
  animation: touchPulse 0.5s ease-out;
}

@keyframes touchPulse {
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

.card-underline {
  position: relative;
  border: 0;
  background-color: unset;
}

.card-underline::after {
  content: "";
  height: 1px;
  width: 25%;
  position: absolute;
  background-color: var(--color-secondary);
  top: 0;
  margin-left: -12%;
}

strong {
  color: var(--color-secondary);
}

.card-centered {
  align-items: center;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-direction: column;
}

/**/

.contacts-list-item {
  padding-bottom: var(--space-sm);
  max-width: 500px;
}

.contacts-list-item.card {
  border-bottom: 1px solid var(--color-secondary);
  margin-bottom: var(--space-sm);
}

.contacts-list {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-md);
}

a.link {
  color: var(--color-secondary);
  font-weight: 500;
}

a.link:hover {
  color: var(--color-primary);
}

.cta-section-content.highlight {
  padding: 1rem;
  max-width: 600px;
  margin: 0 auto;
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
}

.cta-section {
  box-shadow: var(--shadow-sm);
  padding-top: 40px;
}
