/*
 * MM3D Slicer — L4 cover (language gate only).
 * Scoped to body.cover-page. Do not reuse on product home, topbar, or footer.
 */

@font-face {
  font-family: "MM3D Display Serif";
  src: url("/assets/NotoSerifTC-VF.ttf?v=20260815-account-title-v4") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: block;
}

html,
body.cover-page {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body.cover-page {
  background: #071321;
  color: #fff;
  font-family: "Segoe UI", "Microsoft JhengHei UI", "Microsoft JhengHei", "PingFang TC", sans-serif;
}

.cover-stage {
  box-sizing: border-box;
  position: relative;
  min-height: 100%;
  height: 100%;
  overflow: hidden;
}

.cover-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  animation: cover-fade-art 1.1s ease-out both;
}

@keyframes cover-fade-art {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cover-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cover-company,
.cover-copy h1,
.cover-tagline,
.cover-plus,
.cover-languages-label,
.cover-languages-buttons button {
  animation: cover-fade-up 0.7s ease-out both;
}

.cover-company { animation-delay: 0.18s; }
.cover-copy h1 { animation-delay: 0.36s; }
.cover-tagline { animation-delay: 0.52s; }
.cover-plus { animation-delay: 0.68s; }
.cover-languages-label { animation-delay: 0.84s; }
.cover-languages-buttons button:nth-child(1) { animation-delay: 0.96s; }
.cover-languages-buttons button:nth-child(2) { animation-delay: 1.08s; }
.cover-languages-buttons button:nth-child(3) { animation-delay: 1.2s; }

.cover-company {
  position: absolute;
  top: 36px;
  left: 48px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 720px;
}

.cover-company-badge {
  box-sizing: border-box;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 5px;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-company-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.cover-company-name {
  color: #fff;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
}

@media (min-width: 1200px) {
  .cover-company {
    top: 38px;
    left: 56px;
    gap: 18px;
  }

  .cover-company-badge {
    flex: 0 0 61px;
    width: 61px;
    height: 61px;
    padding: 6px;
  }

  .cover-company-name {
    font-size: 23px;
  }
}

.cover-copy {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  margin-left: 7vw;
  max-width: 780px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 24px 32px 0;
}

.cover-copy h1 {
  position: relative;
  margin: 0 0 28px;
  padding-bottom: 18px;
  color: #fff;
  font-family: "MM3D Display Serif", "Noto Serif TC", "Times New Roman", serif;
  font-size: clamp(56px, 5.6vw, 92px);
  font-weight: 900;
  font-variation-settings: "wght" 900;
  font-synthesis: none;
  line-height: 1.05;
  letter-spacing: 0;
  white-space: nowrap;
}

.cover-copy h1::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: 0;
  width: 58px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff9d24, #ffb13b);
}

.cover-tagline {
  margin: 0 0 28px;
  color: #fff;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
}

.cover-plus {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 44px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  font-weight: 400;
}

.cover-plus img {
  width: auto;
  height: 44px;
  display: block;
}

.cover-plus-rule {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.38);
  flex: 0 0 1px;
}

.cover-languages-label {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  font-weight: 400;
}

.cover-languages-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cover-languages-buttons button {
  min-height: 44px;
  min-width: 104px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 4px;
  background: rgba(7, 19, 33, 0.35);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
}

.cover-languages-buttons button:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.cover-languages-buttons button:focus-visible {
  outline: 2px solid #1d9bff;
  outline-offset: 3px;
}

@media (min-width: 901px) {
  .cover-tagline {
    font-size: 30px;
    margin-bottom: 28px;
  }

  .cover-plus {
    margin-bottom: 52px;
    font-size: 20px;
    gap: 16px;
  }

  .cover-plus img {
    height: 56px;
  }

  .cover-plus-rule {
    height: 32px;
  }

  .cover-languages-label {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .cover-languages-buttons button {
    min-height: 48px;
    min-width: 112px;
    font-size: 18px;
    padding: 0 20px;
  }
}

@media (max-width: 900px) {
  .cover-company {
    top: 22px;
    left: 20px;
    gap: 10px;
  }

  .cover-copy {
    margin-left: 20px;
    max-width: none;
    padding: 0 20px 28px 0;
    justify-content: flex-end;
  }

  .cover-copy h1 {
    font-size: clamp(40px, 10vw, 54px);
  }

  .cover-tagline {
    font-size: 20px;
    margin-bottom: 18px;
  }

  .cover-plus {
    margin-bottom: 28px;
    font-size: 15px;
  }

  .cover-plus img {
    height: 40px;
  }
}

@keyframes cover-exit-fade {
  from { opacity: 1; }
  to { opacity: 0; }
}

body.cover-page.cover-page-exit .cover-art,
body.cover-page.cover-page-exit .cover-company,
body.cover-page.cover-page-exit .cover-copy h1,
body.cover-page.cover-page-exit .cover-tagline,
body.cover-page.cover-page-exit .cover-plus,
body.cover-page.cover-page-exit .cover-languages,
body.cover-page.cover-page-exit .cover-languages-label,
body.cover-page.cover-page-exit .cover-languages-buttons button {
  animation: cover-exit-fade 0.7s ease forwards !important;
}

@media (prefers-reduced-motion: reduce) {
  .cover-art,
  .cover-company,
  .cover-copy h1,
  .cover-tagline,
  .cover-plus,
  .cover-languages-label,
  .cover-languages-buttons button {
    animation: none;
  }
}

.cover-icp { position: fixed; left: 0; right: 0; bottom: 16px; text-align: center; z-index: 5; }
.cover-icp a { color: #fff; font-size: 14px; text-decoration: none; }

