:root {
  --bg: #07001A;
  --panel: #12062B;
  --text: #F8F3FF;
  --muted: #C7B8DE;
  --purple: #8B5CF6;
  --magenta: #EC48C6;
  --whatsapp: #25D366;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(236, 72, 198, 0.2), transparent 36rem),
    radial-gradient(circle at 80% 18%, rgba(139, 92, 246, 0.24), transparent 34rem),
    linear-gradient(180deg, #07001a 0%, #03000d 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.sr-only {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.language-dock {
  position: fixed;
  top: 16px;
  left: max(16px, calc(50% - 505px));
  z-index: 30;
  display: inline-flex;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px;
  background: rgba(7, 0, 26, 0.76);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.lang-button {
  min-width: 46px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  color: rgba(248, 243, 255, 0.78);
  background: transparent;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.lang-button.active {
  color: #080111;
  background: var(--whatsapp);
}

.effect-page {
  width: 100%;
  padding: 0;
}

.effect-frame {
  width: min(750px, 100%);
  margin: 0 auto;
  box-shadow: 0 0 80px rgba(236, 72, 198, 0.12);
}

.effect-frame.hidden {
  display: none;
}

.effect-slice {
  margin: 0;
  padding: 0;
}

.effect-slice img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.composite-slice {
  position: relative;
}

.case-stage {
  position: absolute;
  top: 12%;
  left: 9%;
  display: flex;
  width: 82%;
  height: 72%;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 14px;
  border-radius: 18px;
  background: rgba(7, 0, 26, 0.36);
  box-shadow: inset 0 0 42px rgba(236, 72, 198, 0.12);
  clip-path: inset(0 round 18px);
  overscroll-behavior: contain;
  scroll-snap-type: y proximity;
  -webkit-overflow-scrolling: touch;
}

.case-slide {
  display: block;
  width: 86%;
  height: auto;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 106, 213, 0.46);
  border-radius: 16px;
  opacity: 1;
  object-fit: cover;
  object-position: center;
  scroll-snap-align: start;
  box-shadow: 0 0 24px rgba(236, 72, 198, 0.18);
}

.case-stage::-webkit-scrollbar,
.video-stage::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.video-stage {
  position: absolute;
  top: 10.5%;
  left: 6.1%;
  display: flex;
  width: 87.8%;
  height: 66%;
  gap: 0;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 12px 0;
  border-radius: 18px;
  background: rgba(7, 0, 26, 0.36);
  box-shadow: inset 0 0 42px rgba(236, 72, 198, 0.12);
  overscroll-behavior-x: contain;
  scroll-padding-inline: 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.video-slide {
  display: grid;
  min-width: 0;
  height: 100%;
  flex: 0 0 100%;
  place-items: center;
  padding: 0 14px;
  scroll-snap-align: start;
}

.video-stage video {
  display: block;
  width: auto;
  height: calc(100% - 12px);
  max-width: 60%;
  aspect-ratio: 9 / 16;
  border: 1px solid rgba(255, 106, 213, 0.5);
  border-radius: 18px;
  background: #05000f;
  box-shadow: 0 0 28px rgba(236, 72, 198, 0.22);
  object-fit: cover;
}

.case-composite-zh {
  aspect-ratio: 750 / 624;
  overflow: hidden;
}

.case-composite-zh > img {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-34.45%);
}

.case-composite-zh .case-stage {
  top: 10%;
  height: 76%;
}

.floating-whatsapp {
  position: fixed;
  left: 50%;
  bottom: max(4px, env(safe-area-inset-bottom));
  z-index: 35;
  display: block;
  width: min(60vw, 260px);
  transform: translateX(-50%);
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.42));
}

.floating-whatsapp-image {
  display: block;
  width: 100%;
  height: auto;
}

.floating-whatsapp-image[hidden] {
  display: none;
}

@media (max-width: 780px) {
  .language-dock {
    top: 10px;
    left: 10px;
  }

  .floating-whatsapp {
    bottom: max(12px, env(safe-area-inset-bottom));
    width: min(58vw, 230px);
  }

  .case-stage {
    gap: 10px;
    padding: 10px;
  }
}
