
.hero {
  position: relative;
  height: 406px;
  padding-top: 160px;
  overflow-x: clip;
  background: var(--bg);
}

.hero__rain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  overflow: hidden;
  font-family: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 0.2em;
  color: var(--bg);
  white-space: pre;
  text-align: center;
  word-break: break-all;
  pointer-events: none;
  user-select: none;
  z-index: 2;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 8%, #000 42%, transparent 82%);
  mask-image: radial-gradient(120% 90% at 50% 8%, #000 42%, transparent 82%);
}

.hero__light {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1440px;
  max-width: none;
  height: 540px;
  pointer-events: none;
  z-index: 1;
  -webkit-mask-image: radial-gradient(ellipse 55% 55% at 50% 45%, #000 30%, transparent 70%);
  mask-image: radial-gradient(ellipse 55% 55% at 50% 45%, #000 30%, transparent 70%);
}

.hero__fade {
  position: absolute;
  top: 320px;
  left: 0;
  right: 0;
  height: 400px;
  background: linear-gradient(180deg, rgba(235, 239, 245, 0) 0%, rgba(235, 239, 245, 1) 70%);
  z-index: 1;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
  max-width: 576px;
  margin: 0 auto;
}

.hero__title {
  margin: 0;
  
  font-size: clamp(28px, 8.4vw, 64px);
  line-height: 1.25;
}


html[lang="en"] .hero__title {
  white-space: nowrap;
}

.hero__subtitle {
  margin: 0;
  color: var(--text-primary);
  opacity: 0.9;
}


.products {
  position: relative;
  padding: 0;
  z-index: 5;
}


.products__stage {
  overflow: hidden;
  padding: 48px 0;
  margin: -48px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 120px, #000 calc(100% - 120px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 120px, #000 calc(100% - 120px), transparent 100%);
}


.products__content {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
}


.products__stage > .products__content {
  overflow: visible;
}

.products__grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  width: max-content;
  height: 536px;
  transform: translateX(0);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card {
  position: relative;
  flex: 0 0 auto;
  width: 320px;
  height: 536px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  cursor: pointer;
}

.product-card--active {
  width: 696px;
}


.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.product-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.product-card__header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  padding: 48px 48px 0 48px;
}

.product-card__title {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 500;
  line-height: normal;
  white-space: nowrap;
  color: var(--text-primary);
}

.product-card__desc {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: #000000;
  white-space: nowrap;
}


.product-card__shot {
  position: absolute;
  left: 16px;
  top: 150px;
  width: 688px; 
  max-width: none;
  height: auto;
  z-index: 2;
}

.product-card__btn {
  position: absolute;
  top: 48px;
  right: 48px;
  z-index: 4;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 0.4s ease, width 0.35s ease, padding 0.35s ease,
    border-radius 0.35s ease;
}

.product-card__btn-label {
  display: inline-block;
  max-width: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  opacity: 0;
  overflow: hidden;
  transition: max-width 0.35s ease, opacity 0.25s ease;
}

.product-card--active .product-card__btn {
  opacity: 1;
  pointer-events: auto;
}


.product-card__btn:hover {
  width: 136px;
  padding: 0 18px 0 24px;
  border-radius: var(--radius-pill);
  gap: 4px;
}

.product-card__btn:hover .product-card__btn-label {
  max-width: 90px;
  opacity: 1;
}


html[lang="en"] .product-card__btn:hover {
  width: 154px;
}

html[lang="en"] .product-card__btn:hover .product-card__btn-label {
  max-width: 100px;
}

@media (max-width: 1024px) {
  .products__stage {
    overflow: visible;
    padding: 0;
    margin: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }
  
  .products__content {
    padding: 0;
  }
  .products__grid {
    flex-wrap: nowrap;
    width: auto;
    height: auto;
    transform: none;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 40px;
    padding: 8px 40px 32px; 
    scrollbar-width: thin;
    scrollbar-color: rgba(114, 92, 255, 0.35) rgba(9, 12, 12, 0.05);
    -webkit-overflow-scrolling: touch;
  }
  
  .products__grid::-webkit-scrollbar {
    height: 6px;
  }
  .products__grid::-webkit-scrollbar-track {
    background: rgba(9, 12, 12, 0.05);
    border-radius: 9999px;
  }
  .products__grid::-webkit-scrollbar-thumb {
    background: rgba(114, 92, 255, 0.35);
    border-radius: 9999px;
  }
  .products__grid::-webkit-scrollbar-thumb:hover {
    background: rgba(114, 92, 255, 0.6);
  }
  .product-card,
  .product-card--active {
    width: min(56vw, 440px);
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-bottom: 24px;
    scroll-snap-align: center;
  }
  
  .product-card__header {
    position: static;
    padding: 32px 24px 0;
  }
  .product-card__title,
  .product-card__desc {
    white-space: normal;
  }
  .product-card__title {
    padding-right: 56px; 
  }
  .product-card__btn {
    opacity: 1;
    pointer-events: auto;
    top: 24px;
    right: 24px;
  }
  .product-card__shot {
    position: static;
    left: auto;
    top: auto;
    width: 100%; 
    max-width: none;
    margin: 12px 0 0;
    align-self: center;
  }
  
  .products .carousel-arrows {
    display: none;
  }
}

@media (max-width: 768px) {
  
  .products__grid {
    scroll-padding: 0 20px;
    padding: 8px 20px 32px;
  }
  .product-card,
  .product-card--active {
    width: min(80vw, 336px);
  }
}


.capability {
  position: relative;
  z-index: 1;
  padding: 128px 0 0;
}


.capability .container {
  max-width: 1024px;
  padding: 0;
}

@media (max-width: 768px) {
  .capability .container {
    padding: 0 20px;
  }
}

.capability__header {
  position: relative; 
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  
  max-width: 960px;
  margin: 0 auto 80px;
}

.capability__title-wrap {
  
}


.capability__glow {
  position: absolute;
  top: -72px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 480px;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 35%, transparent 72%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 35%, transparent 72%);
}

.capability__header .body-lg,
.capability__title-wrap h2 {
  position: relative;
  z-index: 1;
  margin: 0;
}

.capability__header .body-lg {
  font-size: 16px;
  
  max-width: 900px;
  margin: 0;
}

.capability__grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.capability-card {
  display: flex;
  align-items: stretch;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-card);
  container-type: inline-size;
}

.capability-card__info {
  
  flex: 1 0.001 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 48px 48px 48px 56px;
}

.capability-card__logo {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.capability-card__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.capability-card__head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.capability-card__dot {
  flex: 0 0 auto;
  margin-top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 4px solid transparent;
  background: var(--rainbow) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.capability-card__title {
  margin: 0;
  font-size: clamp(22px, 6vw, 48px);
  font-weight: 500;
  background: linear-gradient(153deg, #725CFF 0%, #090C0C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.capability-card__metric {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  min-height: 42px;
}

.capability-card__metric-label,
.capability-card__first {
  white-space: nowrap;
}

.capability-card__metric-label {
  font-size: clamp(16px, 4.5vw, 30px);
  font-weight: 500;
  color: var(--text-primary);
}

.capability-card__first {
  font-size: clamp(16px, 4.5vw, 30px);
  font-weight: 500;
  background: var(--rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.capability-card__detail {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-primary);
}

.capability-card__visual {
  position: relative;
  
  flex: 0 999 416px;
  min-width: 300px;
  min-height: 280px;
  overflow: hidden;
}

.capability-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.capability-card__visual::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 120px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}


.carousel-arrows {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.carousel-arrow {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--glass-white-30);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-primary);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.carousel-arrow svg {
  width: 24px;
  height: 24px;
}

.carousel-arrow--disabled {
  opacity: 0.2;
  cursor: default;
}

@media (max-width: 1024px) {
  .capability-card {
    flex-direction: column;
  }
  .capability-card__visual {
    flex: 0 0 auto;
    width: 100%;
    
    min-height: 0;
    aspect-ratio: 16 / 7;
  }
  .capability-card__visual::after {
    width: 100%;
    height: 80px;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
  }
}

@media (max-width: 768px) {
  
  .capability__glow {
    height: 360px;
  }
  
  .capability-card__info {
    padding: 24px 20px;
    gap: 16px;
  }
  .capability-card__text {
    gap: 8px;
  }
  .capability-card__metric {
    min-height: 0;
  }
  .capability-card__detail {
    font-size: 14px;
    line-height: 22px;
  }
}


@container (max-width: 520px) {
  .capability-card__info {
    gap: 16px;
  }
  .capability-card__logo {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
  }
}


.bottom_content {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 640px;
  margin: -40px auto 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}


.bottom_content__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(48% 62% at 5% 100%, rgba(51, 173, 255, 0.45) 0%, rgba(51, 173, 255, 0) 62%),
    radial-gradient(52% 58% at 50% 114%, rgba(138, 160, 245, 0.40) 0%, rgba(138, 160, 245, 0) 60%),
    radial-gradient(50% 66% at 96% 100%, rgba(230, 110, 255, 0.50) 0%, rgba(230, 110, 255, 0) 62%);
}

.bottom_content__glow--live {
  background: none;
}

.bottom_content__glow canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.bottom_content__brand {
  position: relative;
  z-index: 2; 
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px; 
  padding: 0 40px;
}


.bottom_brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}


.bottom_brand__wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 500;
  line-height: 68px;
}

.bottom_brand__qwen {
  background: radial-gradient(circle at 100% 0%,
    #33ADFF 0%, #0A8DFF 15%, #3D4AFF 40%,
    #281BE0 60%, #6531F5 85%, #9D5CFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bottom_brand__studio {
  color: #090C0C;
}


.lang-switch {
  position: relative;
}

.lang-switch__toggle {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 56px;
  padding: 12px 24px;
  border: none;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font: inherit;
}

.lang-switch__left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch__icon,
.lang-switch__chevron {
  display: block;
  width: 24px;
  height: 24px;
}

.lang-switch__chevron {
  transition: transform 0.25s ease;
}

.lang-switch--open .lang-switch__chevron {
  transform: rotate(180deg);
}

.lang-switch__label {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: #090C0C;
}

.lang-switch__menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(9, 12, 12, 0.12);
}


.lang-switch__menu[hidden] {
  display: none;
}

.lang-switch__option {
  border: none;
  background: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 16px;
  line-height: 24px;
  color: #090C0C;
  text-align: left;
  cursor: pointer;
}

.lang-switch__option:hover {
  background: rgba(9, 12, 12, 0.05);
}


.bottom_content .footer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 32px 28px;
}

@media (max-width: 768px) {
  .bottom_content {
    height: auto;
    padding-bottom: 8px;
  }
  .bottom_content__brand {
    padding: 64px 20px 24px;
    gap: 28px;
  }
  .bottom_brand__wordmark {
    line-height: 1.3;
  }
  .bottom_content .footer {
    max-width: calc(100% - 40px);
    padding: 32px 0;
  }
}
