.page-ai-shop {
  --navy: #061a3a;
  --navy-2: #0b2f62;
  --blue: #0787e2;
  --text: #1c2230;
  --muted: #647188;
  --line: #dde4ee;
  --hero-cover-w: 680px;
  --hero-cover-h: 386px;
  --hero-overlap: 100px;
  --container: 1120px;
  --pad-x: clamp(1rem, 3vw, 1.8rem);
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

.page-ai-shop *,
.page-ai-shop *::before,
.page-ai-shop *::after { box-sizing: border-box; }

.page-ai-shop img { display: block; max-width: 100%; height: auto; }

.page-ai-shop .section { padding-block: clamp(4.8rem, 12vw, 8.6rem); }

.frame {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.72rem 1.35rem;
  border: 0;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.btn::after {
  content: " >";
  margin-left: 0.2em;
}

.btn--light { background: #fff; color: var(--blue); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--outline { background: transparent; color: #4b596f; border: 1px solid #b7c2d2; border-radius: 999px; }

.section-title { margin: 0 0 0.7rem; font-size: clamp(1.35rem, 2.7vw, 2.2rem); line-height: 1.15; }
.section-title--center { text-align: center; }
.section-sub { margin: 0; color: var(--muted); line-height: 1.5; text-align: center; }
.kicker { margin: 0 0 0.5rem; color: #7f8fb0; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* Hero */
.hero {
  background: #081a37;
  color: #fff;
  /* padding-block: clamp(1.1rem, 3vw, 1.8rem) clamp(7.2rem, 12vw, 8.8rem); */
  position: relative;
  z-index: 3;
  overflow: visible;
  margin-bottom: 120px;
}

.hero__logo { width: clamp(108px, 15vw, 155px); margin-bottom: 1rem; }
.hero__title { margin: 3rem 0 1rem; font-size: clamp(1.8rem, 3.9vw, 2.8rem); line-height: 1.2; text-align: center; }
.hero__sub { margin: 0 auto 1rem; max-width: 54ch; text-align: center; color: #ffffff; font-size: clamp(1.02rem, 1.25vw, 1.2rem); }

.hero .frame { text-align: center; position: relative; }
.hero .frame { padding-top: clamp(0.8rem, 2vw, 1.4rem); }

.hero__cover-carousel {
  --cover-w: var(--hero-cover-w);
  --cover-h: var(--hero-cover-h);
  width: var(--cover-w);
  position: absolute;
  left: 50%;
  bottom: -180px;
  transform: translate(-50%,0);
  margin: 0;
  z-index: 6;
}

.hero__cover-slide {
  width: var(--cover-w);
  height: var(--cover-h);
  border-radius: 16px;
  background: #e6e6e6;
}

.hero__cover-dots {
  margin-top: 0.9rem;
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  width: fit-content;
  margin-inline: auto;
  padding: 0.62rem 1.08rem;
  border-radius: 999px;
  background: #f1f1f1;
}

.hero__cover-dots span {
  width: 4.8px;
  height: 4.8px;
  border-radius: 999px;
  background: #a5a5a5;
  display: inline-block;
  transition: width 0.2s ease;
  align-self: center;
}

.hero__cover-dots span.is-active {
  width: 23.4px;
  height: 4.2px;
  border-radius: 140.4px;
  background: #a5a5a5;
}

/* White features block */
.section--white { background: #fff; position: relative; z-index: 1; }
.section--white {
  margin-top: 0;
  padding-top: calc(var(--hero-overlap) + clamp(2rem, 4vw, 3rem));
}
.service-block {
  width:100%;
  /* max-width: 100%; */
  margin-inline: auto;
}

.service-block__intro {
  text-align: center;
  margin: 0 auto;
  margin-bottom: 3.2rem;
  width: min(100%, 703px);
}

.service-block__intro h2 {
  margin: 0 0 1.05rem;
  font-size: clamp(1.5rem, 2.2vw, 1.95rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 500;
  color: #2f2f2f;
}

.service-block__intro p {
  margin: 0;
  width: min(100%, 703px);
  margin-inline: auto;
  color: #2f2f2f;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.45;
}

.service-row {
  margin-top: 4.8rem;
  padding-bottom: 2.2rem;
  border-bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, 60%) minmax(0, 40%);
  grid-template-areas:
    "head media"
    "icons icons"
    "cta cta";
  column-gap: 100px;
  align-items: center;
}

.service-row:last-child { border-bottom: 0; }

.service-row__head {
  grid-area: head;
  max-width: none;
  width: 100%;
  align-self: center;
}

.service-row--reverse .service-row__head {
  grid-area: head;
  justify-self: end;
  margin-left: 0;
  max-width: none;
  width: 100%;
}

.service-row__head h3 {
  margin: 0 0 1rem;
  font-size: clamp(1.32rem, 1.8vw, 1.65rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #2f2f2f;
}

.service-row__head p {
  margin: 0;
  color: #2f2f2f;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.62;
}

.service-row__media {
  grid-area: media;
  margin-top: 1.05rem;
  border: 1px solid #d4deeb;
  background: #ececec;
  align-self: center;
  justify-self: end;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.service-row__video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #ececec;
}

.service-row__play-btn {
  position: absolute;
  inset: auto auto 50% 50%;
  transform: translate(-50%, 50%);
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #3c4a5f;
  font-size: 1.1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.service-row__media.is-playing .service-row__play-btn,
.light-card__media.is-playing .service-row__play-btn,
.dark-split__media.is-playing .service-row__play-btn {
  opacity: 0;
  pointer-events: none;
}

.service-row--reverse .service-row__media { margin-right: auto; }
.service-row:not(.service-row--reverse) .service-row__media { margin-left: auto; }
.service-row--reverse .service-row__media { justify-self: start; }
.service-row--reverse {
  grid-template-columns: minmax(0, 40%) minmax(0, 60%);
  grid-template-areas: "media head" "icons icons" "cta cta";
}

.service-row__icons {
  grid-area: icons;
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.7rem 1.8rem;
}

.service-row__icons article { text-align: center; }
.service-row__icons img { width: 34px; height: 34px; margin: 0 auto 1.05rem; }
.service-row__icons h4 { margin: 0 0 0.9rem; font-size: 1.08rem; line-height: 1.25; font-weight: 500; color: #2f2f2f; }
.service-row__icons p { margin: 0; color: #2f2f2f; font-size: 0.92rem; line-height: 1.68; }

.service-row .btn {
  grid-area: cta;
  justify-self: center;
  margin-top: 2.9rem;
  min-height: 58px;
  padding: 0.7rem 2.1rem;
  font-size: 0.98rem;
  font-weight: 500;
  color: #2f2f2f;
  border: 2px solid #55585d;
  border-radius: 999px;
  background: transparent;
  letter-spacing: 0.01em;
}

/* Blue strip */
.blue-strip {
  background: #0071d1;
  padding-block: 0.7rem 0.65rem;
}

.blue-strip__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.2rem;
}

.blue-strip__title {
  margin: 0;
  color: #fff;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.blue-strip__logos {
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

.blue-strip__logos-track {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(1.6rem, 3.2vw, 3.2rem);
  padding-inline: clamp(1.6rem, 3.2vw, 3.2rem);
  animation: blue-strip-marquee 28s linear infinite;
  will-change: transform;
}

.blue-strip__logos img {
  flex: 0 0 auto;
  height: 22px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

@keyframes blue-strip-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  .blue-strip__logos-track { animation: none; }
}

/* Dark split */
.section--dark-split {
  background: #081a37;
  color: #fff;
  padding-block: clamp(3rem, 6vw, 4rem);
}

.dark-split {
  display: flex;
  flex-direction: column;
  gap: 2.45rem;
  width: 100%;
}

.dark-split__hero {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 40%) minmax(0, 60%);
  gap: 2.4rem;
  align-items: center;
}

.dark-split__copy .kicker {
  margin: 0 0 0.7rem;
  color: #d7e4f7;
  font-size: 0.82rem;
  line-height: 1.1;
  text-transform: none;
  letter-spacing: 0;
}

.dark-split__copy h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  line-height: 1.14;
  font-weight: 600;
}

.dark-split__copy p {
  margin: 0 0 1.05rem;
  color: #c9d8ef;
  line-height: 1.45;
  font-size: 0.84rem;
}

.dark-split__copy .btn {
  margin-top: 0.65rem;
  min-height: 34px;
  padding: 0.48rem 0.95rem;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0;
  border-radius: 999px;
}

.dark-split__video {
  display: flex;
  justify-content: flex-end;
}

.dark-split__media {
  width: 100%;
  aspect-ratio: 371 / 226;
  border: 8px solid #edf1f8;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: #edb172;
}

.video-box {
  width: 100%;
  aspect-ratio: 371 / 226;
  height: auto;
  border: 8px solid #edf1f8;
  border-radius: 16px;
  background: #edb172;
  color: #f4ebde;
  font-size: 1.02rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
}

.video-box__play {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  padding-left: 1px;
}

.dark-split__features {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 270px));
  justify-content: space-between;
  margin-top: 0.8rem;
  column-gap: 1.2rem;
  row-gap: 0.9rem;
}

.dark-split__features article {
  display: grid;
  grid-template-columns: 30px 1fr;
  column-gap: 0.9rem;
  align-items: start;
  align-content: start;
  width: 100%;
  max-width: none;
  justify-self: stretch;
}

.dark-split__tick {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 0;
  color: transparent;
  font-size: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  background: url("../image/ai/duiIcon.png") center / contain no-repeat;
}

.dark-split__features h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 0.34rem;
  font-size: 1.02rem;
  line-height: 1.28;
  font-weight: 500;
  color: #ffffff;
}

.dark-split__features p {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  color: #bfd1ea;
  font-size: 0.86rem;
  line-height: 1.54;
}

.ph-box {
  min-height: 220px;
  border: 1px dashed #89a4c8;
  border-radius: 8px;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.1) 8px, rgba(255,255,255,0.16) 8px, rgba(255,255,255,0.16) 16px);
}

/* Light card */
.section--light-card { background: #eef5ff; }
.light-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
  align-items: center;
}
.light-card img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.light-card__media {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  background: #d9deea;
}

.light-card__kicker {
  margin: 0 0 0.85rem;
  color: #8fa4c0;
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 500;
}

.light-card__copy h3 {
  margin: 0 0 1.05rem;
  font-size: clamp(1.45rem, 2.25vw, 2rem);
  line-height: 1.24;
  color: #2f2f2f;
  font-weight: 600;
}

.light-card__copy p {
  margin: 0 0 1.45rem;
  line-height: 1.5;
  font-size: 0.93rem;
  color: #555;
}
.light-card__copy p.light-card__kicker{
  color: #73B6ED;
}

.light-card__copy .btn {
  margin-top: 0.4rem;
  min-height: 36px;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 999px;
}

/* Gallery */
.section--gallery {
  background: #fff;
  padding-block: clamp(3.2rem, 8vw, 5.2rem);
}
.section--gallery .section-title {
  margin-top: 0.6rem;
  margin-bottom: 2.9rem;
  color: #21242d;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 600;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 2rem;
}

.why-card img {
  width: 100%;
  border-radius: 16px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.why-card h3 {
  margin: 2.97rem 0 0.65rem;
  color: #21242d;
  font-size: 1.12rem;
  line-height: 1.24;
  font-weight: 600;
}

.why-card p {
  margin: 0;
  color: #3d4450;
  font-size: 0.96rem;
  line-height: 1.56;
}

/* Carousel */
.section--carousel { background: #fff; }
.carousel { position: relative; margin-top: 0.8rem; }
.carousel__viewport { overflow: hidden; }
.carousel__track { display: flex; transition: transform 320ms ease; }
.slide { flex: 0 0 33.3333%; padding: 0 0.4rem; }
.slide img { width: 100%; border-radius: 8px; border: 1px solid var(--line); aspect-ratio: 16 / 10; object-fit: cover; }
.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}
.carousel__btn--prev { left: -4px; }
.carousel__btn--next { right: -4px; }

/* Values section */
.section--values {
  background: #ececec;
  padding-block: clamp(27rem, 60vw, 40rem);
}

.values-block h2 {
  margin: 0 0 2.4rem;
  text-align: left;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.2;
  font-weight: 600;
  color: #2e2f34;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.value-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.45rem 1.25rem 1.35rem;
  min-height: 220px;
}

.value-card img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  margin-bottom: 1.15rem;
}

.value-card h3 {
  margin: 0 0 0.45rem;
  color: #35373d;
  font-size: 1.08rem;
  line-height: 1.25;
  font-weight: 600;
}

.value-card p {
  margin: 0;
  color: #7f838b;
  font-size: 0.86rem;
  line-height: 1.45;
}

/* Final CTA */
.section--final-cta {
  background: #081a37;
  padding-block: clamp(0.9rem, 2vw, 1.3rem);
}

.final-cta {
  text-align: center;
  color: #ffffff;
}

.final-cta img {
  width: 250px;
  margin: 0 auto 2.2rem;
}

.final-cta p {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.4;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .light-card { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }

  .dark-split__hero {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  .dark-split__copy h2,
  .dark-split__copy p {
    max-width: none;
  }

  .dark-split__video {
    justify-content: flex-start;
  }

  .video-box {
    width: min(100%, 371px);
    height: 226px;
  }

  .dark-split__media {
    width: min(100%, 371px);
  }

  .dark-split__features {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .service-row__head,
  .service-row--reverse .service-row__head { max-width: 100%; margin-left: 0; }

  .service-row,
  .service-row--reverse {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "media"
      "icons"
      "cta";
  }

  .service-row__media,
  .service-row--reverse .service-row__media,
  .service-row:not(.service-row--reverse) .service-row__media {
    margin-inline: auto;
  }
}

@media (max-width: 767px) {
  .page-ai-shop {
    --hero-overlap: 0px;
  }

  .hero {
    padding-bottom: clamp(2.6rem, 7vw, 3.4rem);
  }

  .hero__title { font-size: clamp(1.55rem, 7.6vw, 2.3rem); }
  .hero__cover-carousel {
    --cover-w: min(100vw - 2rem, var(--hero-cover-w));
    --cover-h: calc(var(--cover-w) * 386 / 680);
    width: var(--cover-w);
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin: 4.6rem auto 0;
  }
  .hero__cover-slide {
    width: 100%;
    height: var(--cover-h);
    aspect-ratio: auto;
  }
  .section--white {
    margin-top: 0;
    padding-top: clamp(2.2rem, 6vw, 3rem);
  }

  .service-block__intro {
    width: 100%;
    margin-bottom: 2.1rem;
  }

  .service-block__intro h2 {
    font-size: clamp(1.2rem, 5.8vw, 1.55rem);
    line-height: 1.28;
  }

  .service-block__intro p {
    font-size: clamp(0.92rem, 4.2vw, 1.02rem);
    line-height: 1.5;
  }

  .service-row__icons,
  .why-grid { grid-template-columns: 1fr; }
  .slide { flex: 0 0 100%; padding: 0; }
  .carousel__btn { top: auto; bottom: -42px; transform: none; }
  .carousel__btn--prev { left: calc(50% - 42px); }
  .carousel__btn--next { right: calc(50% - 42px); }
  .section--carousel { padding-bottom: 3.9rem; }
}

@media (min-width: 1024px) {
  .service-block__intro {
    width: min(980px, calc(100vw - 2 * var(--pad-x)));
  }

  .service-block__intro h2 {
    width: 100%;
    margin-inline: 0;
    white-space: nowrap;
  }
}

@media (min-width: 768px) {
  .hero .frame {
    min-height: clamp(340px, 36vw, 430px);
    padding-bottom: calc(var(--hero-cover-h) * 0.5 + 4.25rem);
  }

  .hero__sub {
    margin-bottom: 3.8rem;
  }
}
