/* Applications page — TorcNova style */

.app-nav {
  border-bottom: 0.052vw solid #EAEBEB;
  background: #fff;
  position: sticky;
  top: var(--head);
  z-index: 20;
}

.app-nav .C-wrap {
  gap: 2.083vw;
  height: 4.166vw;
}

.app-nav .nav-item {
  position: relative;
  color: #717374;
  line-height: 1.3;
  padding: 0.52vw 0.208vw;
  transition: color ease 0.3s;
  text-decoration: none;
}

.app-nav .nav-item::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 0.156vw;
  background: var(--color);
  transition: width ease 0.3s;
}

.app-nav .nav-item:hover,
.app-nav .nav-item.on {
  color: #0F1011;
}

.app-nav .nav-item.on::after {
  width: 100%;
}

/* ---- Customer Cases ---- */
.app1 {
  padding: 6.25vw 0 7.291vw;
  background: #fff;
}

.app1 .title-area {
  max-width: 52.083vw;
  margin-bottom: 3.125vw;
}

.app1 .C-title .title {
  color: #0F1011;
  line-height: 1.25;
  margin-top: 0.52vw;
}

.app1 .case-list {
  gap: 2.5vw 2.5vw;
}

.app1 .case-item {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 0.208vw;
  overflow: hidden;
  transition: transform ease 0.4s;
}

.app1 .case-item .image-wrap {
  width: 100%;
  height: 15.52vw;
  border-radius: 0.208vw;
  overflow: hidden;
  background: #F1F1F1;
}

.app1 .case-item .image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform ease 0.6s;
}

.app1 .case-item:hover .image-wrap img {
  transform: scale(1.05);
}

.app1 .case-item .card-content {
  padding: 1.25vw 0 0.52vw;
}

.app1 .case-item .t1 {
  color: #0F1011;
  line-height: 1.35;
  min-height: 2.708vw;
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.app1 .case-item .t2 {
  color: #717374;
  line-height: 1.7;
  margin-top: 0.625vw;
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.app1 .case-item .meta {
  gap: 0.416vw;
  margin-top: 0.833vw;
  color: #717374;
}

.app1 .case-item .meta .tag {
  color: #D6D7D7;
}

.app1 .case-item .meta .link {
  color: var(--color);
  transition: opacity ease 0.3s;
}

.app1 .case-item:hover .meta .link {
  opacity: 0.75;
}

.app1 .C-pages {
  margin-top: 5.208vw;
}

.app1 .C-pages .page-btn {
  width: 2.916vw;
  height: 2.916vw;
  border-radius: 0.208vw;
  border: 0.052vw solid #EAEBEB;
  background: #fff center / 0.833vw no-repeat;
  cursor: pointer;
  transition: all ease 0.3s;
}

.app1 .C-pages .page-btn.prev {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23353839' stroke-width='2'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E");
}

.app1 .C-pages .page-btn.next {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23353839' stroke-width='2'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
}

.app1 .C-pages .page-btn:hover:not(.disabled) {
  border-color: var(--color);
}

.app1 .C-pages .page-btn.disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* ---- Testimonials ---- */
.app2 {
  padding: 6.25vw 0;
  background: #0F1011;
  position: relative;
  overflow: hidden;
}

.app2::before {
  content: '';
  position: absolute;
  left: -10%;
  top: -20%;
  width: 40%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(242, 30, 37, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.app2 .quote-card {
  display: flex;
  align-items: stretch;
  gap: 3.125vw;
  min-height: 22.916vw;
}

.app2 .quote-media {
  width: 28.125vw;
  flex-shrink: 0;
  border-radius: 0.208vw;
  overflow: hidden;
  background: #1a1b1c;
}

.app2 .quote-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app2 .quote-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.041vw 0;
}

.app2 .quote-body .role {
  color: var(--color);
  line-height: 1.5;
  margin-bottom: 1.25vw;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.app2 .quote-body .quote {
  color: #fff;
  line-height: 1.55;
  position: relative;
}

.app2 .quote-body .quote::before {
  content: '“';
  display: block;
  font-family: var(--fontb);
  font-size: 4.166vw;
  line-height: 0.8;
  color: rgba(242, 30, 37, 0.45);
  margin-bottom: 0.833vw;
}

.app2-swiper {
  padding-bottom: 3.125vw;
}

.app2-swiper .swiper-pagination {
  bottom: 0;
}

.app2-swiper .swiper-pagination-bullet {
  width: 0.625vw;
  height: 0.625vw;
  background: #717374;
  opacity: 1;
  border-radius: 50%;
  transition: all ease 0.3s;
}

.app2-swiper .swiper-pagination-bullet-active {
  background: var(--color);
  width: 1.666vw;
  border-radius: 0.312vw;
}

.app2-swiper .swiper-button-prev,
.app2-swiper .swiper-button-next {
  width: 2.916vw;
  height: 2.916vw;
  margin-top: 0;
  top: auto;
  bottom: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 0.052vw solid rgba(255, 255, 255, 0.2);
  border-radius: 0.208vw;
  color: #fff;
  transition: all ease 0.3s;
}

.app2-swiper .swiper-button-prev {
  left: auto;
  right: 4.166vw;
}

.app2-swiper .swiper-button-next {
  right: 0;
}

.app2-swiper .swiper-button-prev::after,
.app2-swiper .swiper-button-next::after {
  font-size: 0.833vw;
  font-weight: 700;
}

.app2-swiper .swiper-button-prev:hover,
.app2-swiper .swiper-button-next:hover {
  background: var(--color);
  border-color: var(--color);
}

/* ---- Our Clients ---- */
.app3 {
  padding: 7.291vw 0 8.333vw;
  background: #F7F7F7;
  overflow: hidden;
}

.app3 .title-area {
  max-width: 52.083vw;
  margin-bottom: 3.645vw;
}

.app3 .C-title .title {
  color: #0F1011;
  line-height: 1.25;
  margin-top: 0.52vw;
}

.app3 .logo-marquee {
  display: flex;
  flex-direction: column;
  gap: 1.666vw;
}

.app3 .marquee-track {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.app3 .marquee-row {
  display: flex;
  width: max-content;
  gap: 1.25vw;
  animation: appMarqueeLeft 40s linear infinite;
}

.app3 .track-right .marquee-row {
  animation-name: appMarqueeRight;
}

.app3 .logo-item {
  width: 11.458vw;
  height: 5.208vw;
  flex-shrink: 0;
  background: #fff;
  border-radius: 0.208vw;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.833vw 1.041vw;
  border: 0.052vw solid #EAEBEB;
  transition: border-color ease 0.3s, box-shadow ease 0.3s;
}

.app3 .logo-item:hover {
  border-color: #D8D9D9;
  box-shadow: 0 0.416vw 1.25vw rgba(15, 16, 17, 0.06);
}

.app3 .logo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter ease 0.3s, opacity ease 0.3s;
}

.app3 .logo-item:hover img {
  filter: none;
  opacity: 1;
}

@keyframes appMarqueeLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes appMarqueeRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.app3 .marquee-track:hover .marquee-row {
  animation-play-state: paused;
}

/* ---- Mobile ---- */
@media screen and (max-width: 768px) {
  .app-nav {
    top: 3.75rem;
  }

  .app-nav .C-wrap {
    height: auto;
    padding: 0.75rem 1.25rem;
    gap: 1.25rem;
  }

  .app1 {
    padding: 2.5rem 0 3rem;
  }

  .app1 .title-area,
  .app3 .title-area {
    max-width: 100%;
    margin-bottom: 1.5rem;
  }

  .app1 .case-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .app1 .case-item .image-wrap {
    height: 12rem;
  }

  .app1 .case-item .t1 {
    min-height: auto;
  }

  .app1 .C-pages .page-btn {
    width: 2.5rem;
    height: 2.5rem;
  }

  .app2 {
    padding: 2.5rem 0 3rem;
  }

  .app2 .quote-card {
    flex-direction: column;
    gap: 1.25rem;
    min-height: auto;
  }

  .app2 .quote-media {
    width: 100%;
    height: 14rem;
  }

  .app2 .quote-body .quote::before {
    font-size: 2.5rem;
  }

  .app2-swiper {
    padding-bottom: 3.5rem;
  }

  .app2-swiper .swiper-button-prev,
  .app2-swiper .swiper-button-next {
    width: 2.5rem;
    height: 2.5rem;
  }

  .app2-swiper .swiper-button-prev {
    right: 3.25rem;
  }

  .app2-swiper .swiper-pagination-bullet {
    width: 0.5rem;
    height: 0.5rem;
  }

  .app2-swiper .swiper-pagination-bullet-active {
    width: 1.25rem;
  }

  .app3 {
    padding: 2.5rem 0 3rem;
  }

  .app3 .logo-item {
    width: 8.5rem;
    height: 4rem;
  }
}
