:root {
  --blue: #034fb4;
  --blue-deep: #002a8c;
  --ink: #202020;
  --white: #ffffff;
  --cyan-edge: #3cc5ff;
  --line: rgba(60, 197, 255, 0.35);
  --grad-start: #1c68ff;
  --grad-end: #00bc81;
  --font-en: "Roboto", system-ui, sans-serif;
  --font-tc: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --font-sc: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --shadow-soft: 0 16px 48px rgba(3, 79, 180, 0.12);
  --radius-panel: 36px;
  --radius-card: 20px;
  --max: 1180px;
  --side: max(28px, calc((100vw - 1180px) / 2));
  --solutions-side: var(--side);
  --solutions-pad-x: 40px;
  --brand-logo-h: 34px;
  --group-logo-scale: 0.75;
  --header-inset: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-tc);
  background: #fff;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
}

html[lang="zh-Hans"] body {
  font-family: var(--font-sc);
}

html[lang="en"] body {
  font-family: var(--font-en);
}

html[lang="en"] {
  --group-logo-scale: 0.65;
}

img {
  display: block;
  max-width: 100%;
}

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

.page-bg {
  --bg-aspect: 1.8242;
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  width: 100%;
  /* Mid of solutions-panel — set by syncPageBgHeight(); fallback until measured */
  height: var(--page-bg-h, max(70vh, calc(100vw / var(--bg-aspect))));
  background: transparent;
  opacity: 0;
}

.page-bg img {
  display: block;
  position: absolute;
  top: 0;
  left: 50%;
  width: auto;
  height: 100%;
  max-width: none;
  transform: translateX(-50%);
}

body > :not(.page-bg):not(.site-header) {
  position: relative;
  z-index: 1;
}

body > .site-header {
  position: sticky;
  top: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--max), calc(100% - 2 * var(--side)));
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding: 12px var(--header-inset) 12px calc(var(--header-inset) + 12px);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  width: auto;
  height: var(--brand-logo-h);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-faq {
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: normal;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.header-faq:hover {
  color: var(--blue-deep);
}

.header-faq:focus-visible {
  outline: 2px solid var(--cyan-edge);
  outline-offset: 3px;
  border-radius: 4px;
}

.header-faq[aria-current="page"] {
  color: var(--blue-deep);
  font-weight: 600;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--cyan-edge);
  border-radius: 999px;
  background: var(--white);
}

.language-switch button {
  min-width: 40px;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
}

.language-switch button.active {
  background: var(--blue-deep);
  color: var(--white);
}

.language-switch button:focus-visible {
  outline: 2px solid var(--cyan-edge);
  outline-offset: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 999px;
  background: var(--blue-deep);
  color: var(--white);
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0, 42, 140, 0.28);
}

.btn:focus-visible {
  outline: 2px solid var(--cyan-edge);
  outline-offset: 3px;
}

.btn-login {
  min-height: 44px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 500;
}

.btn-cta {
  min-height: 64px;
  padding: 16px 40px;
  font-size: 22px;
}

/* Coming-soon CTA: fixed bar height; orb larger & out of flow */
.btn-cta.btn-cta-with-orb {
  --orb-size: 68px;
  --btn-h: 62px;
  /* share of orb sitting on the blue bar (0.5 = half); higher = more overlap right */
  --orb-inset: 0.64;
  height: var(--btn-h);
  min-height: var(--btn-h);
  max-height: var(--btn-h);
  padding: 0 48px 0 calc(var(--orb-size) * var(--orb-inset) + 16px);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1;
  overflow: visible;
}

main#top {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(860px, calc(100% - 2 * var(--side)));
  max-width: 100%;
  min-height: calc(100svh - 120px);
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
  margin-bottom: 0;
  padding: 40px 0;
  text-align: center;
  gap: 0;
  box-sizing: border-box;
}

.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: clamp(16px, 3vw, 40px);
  margin-bottom: 48px;
}

.product-name {
  margin: 0;
  color: var(--blue);
  font-size: clamp(48px, 8vw, 84px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  filter: drop-shadow(-1px 1px 2px rgba(81, 122, 206, 0.8));
}

.hkt-ai-badge {
  width: clamp(128px, 16vw, 180px);
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(117, 182, 225, 0.22));
}

.hero-title {
  margin: 0 0 20px;
  width: 100%;
  color: var(--ink);
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.hero-copy {
  margin: 0 auto 56px;
  max-width: 52rem;
  width: 100%;
  color: var(--ink);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 400;
  line-height: 1.65;
  text-align: center;
}

.hero .btn-cta {
  align-self: center;
}

/* EN solutions card: floating white panel + 2 offset frosted layers
   EN (1920): white 1590×1210 @ y1184;
   layer 0.5: 1560×1233 @ y1161 (peek 23px, inset ~15px);
   layer 0.3: 1497×1250 @ y1144 (peek 40px, inset ~45px). */
.solutions {
  position: relative;
  display: block;
  width: min(var(--max), calc(100% - 2 * var(--side)));
  margin: 72px auto 0;
  padding-top: 40px;
  box-sizing: border-box;
}

.solutions-stack {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

.solutions-layer {
  position: absolute;
  border-radius: 54px;
}

/* Wider / lower — peeks ~23px above white */
.solutions-layer-1 {
  left: 1.1%;
  right: 0.8%;
  top: 17px;
  bottom: 0;
  z-index: 2;
  background: rgba(255, 255, 255, 0.5);
}

/* Narrower / higher — peeks ~40px above white */
.solutions-layer-2 {
  left: 3.2%;
  right: 2.6%;
  top: 0;
  bottom: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.3);
}

.solutions-panel {
  position: relative;
  z-index: 3;
  margin-top: 0;
  padding: 36px var(--solutions-pad-x) 44px;
  border-radius: 54px;
  background: #fff;
  box-sizing: border-box;
}

.solutions-panel .section-title {
  margin-left: 0;
  margin-right: 0;
}

.solutions-panel .industry-grid {
  width: 100%;
  box-sizing: border-box;
}

.section-title {
  margin: 0 0 32px;
  text-align: center;
  font-size: clamp(28px, 3.8vw, 48px);
  font-weight: 600;
  line-height: 1.35;
}

.gradient-text {
  color: transparent;
  background-image: linear-gradient(90deg, var(--grad-start) 0%, var(--grad-end) 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
}

.industry-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 639 / 390;
  border-radius: 20px;
  isolation: isolate;
}

.industry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.industry-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 35%, rgba(0, 0, 0, 0.72) 100%);
  pointer-events: none;
}

.industry-card span {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 1;
  color: var(--white);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 500;
  line-height: 1.25;
  text-shadow: 0 4px 3px rgba(0, 0, 0, 0.6);
}

.industry-card:hover img {
  transform: scale(1.04);
}

.coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(var(--max), calc(100% - 2 * var(--side)));
  margin: 100px auto 0;
  text-align: center;
  overflow: visible;
}

.coming-soon > .section-title,
.coming-soon > .coming-copy {
  width: min(760px, 100%);
}

.coming-copy {
  margin: 0 auto 32px;
  max-width: 52rem;
  color: var(--ink);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 400;
  line-height: 1.65;
  text-align: center;
}

.btn-cta-with-orb {
  position: relative;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100% - var(--orb-size, 96px) / 2);
  margin-bottom: 80px;
}

.cta-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0;
  border-radius: 50%;
  background: var(--white);
  flex-shrink: 0;
  overflow: hidden;
  font-size: 72px;
}

/* Orb out of flow so it cannot stretch the blue bar */
.btn-cta-with-orb .cta-orb {
  position: absolute;
  left: 0;
  top: 50%;
  width: var(--orb-size);
  height: var(--orb-size);
  margin: 0;
  transform: translate(calc((var(--orb-inset, 0.5) - 1) * 100%), -50%);
  z-index: 2;
  font-size: var(--orb-size);
  overflow: visible;
}

.cta-orb img {
  width: 92%;
  height: 92%;
  border-radius: 50%;
  object-fit: cover;
}

.cta-orb-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 42, 140, 0.25);
}

.support-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 64px);
  width: 100%;
  margin: 0;
  padding: 28px 0 48px;
  border: 0;
  background: transparent;
  text-align: left;
}

.support-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex-shrink: 0;
  min-height: 0;
  padding: 8px 0;
  border: 0;
}

.support-brand-mark {
  width: clamp(88px, 10vw, 120px);
  height: auto;
  display: block;
  object-fit: contain;
}

.support-brand strong {
  margin-top: 10px;
  color: #004990;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.support-cards {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: clamp(28px, 3.2vw, 44px);
  flex: 1;
  min-width: 0;
}

.support-card {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 1 auto;
  min-height: 0;
  min-width: 0;
  padding: 0;
  border: 0;
}

.support-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.support-copy [data-render="personal"] {
  display: contents;
}

.support-label {
  display: block;
  color: var(--blue);
  font-size: clamp(16px, 1.7vw, 18px);
  font-weight: 600;
  line-height: 1.3;
}

.support-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 700;
  line-height: 1.35;
}

.support-hotline-row {
  display: inline;
}

.support-title a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.support-title a:hover {
  color: var(--blue);
}

.support-or {
  font-weight: 700;
}

.support-wa {
  margin: 0;
  color: var(--ink);
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 500;
  line-height: 1.4;
}

.support-wa a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.support-wa a:hover {
  color: var(--blue-deep);
}

.support-business-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.support-business-suffix:empty {
  display: none;
}

.support-chat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 22px;
  border-radius: 999px;
  background: #002a8c;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.support-chat-btn:hover {
  background: var(--blue);
  color: #fff !important;
  transform: translateY(-1px);
}

.support-qr {
  width: 108px;
  height: 108px;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff;
  object-fit: contain;
  object-position: center;
}

.site-footer {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: min(var(--max), calc(100% - 2 * var(--side)));
  margin: 96px auto 0;
  padding: 40px 0 max(32px, calc(20px + env(safe-area-inset-bottom, 0px)));
  border-top: 1px solid #e6e8ec;
  background: #fff;
  box-sizing: border-box;
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin-top: 0;
  padding-top: 24px;
  border-top: 1px solid #e6e8ec;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}

.footer-links a {
  color: #004990;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links span {
  color: #9aa3b2;
}

.footer-copyright {
  margin: 0;
  color: #9aa3b2;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.footer-member {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  text-align: right;
}

.group-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: calc(var(--brand-logo-h) * var(--group-logo-scale));
  margin: 0;
  object-fit: contain;
  object-position: right center;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes brand-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.92);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes badge-glow {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bg-bloom {
  from {
    opacity: 0;
    transform: scale(1.08);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes header-in {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— First-paint entrance —— */
body.is-ready .page-bg {
  animation: bg-bloom 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

[data-enter] {
  opacity: 0;
}

body.is-ready [data-enter="header"] {
  animation: header-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

body.is-ready [data-enter="brand"] {
  animation: brand-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

body.is-ready [data-enter="brand"] .hkt-ai-badge {
  animation: badge-glow 0.85s cubic-bezier(0.34, 1.4, 0.64, 1) 0.42s both;
}

body.is-ready [data-enter="title"] {
  animation: rise-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.48s both;
}

body.is-ready [data-enter="copy"] {
  animation: rise-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.58s both;
}

body.is-ready [data-enter="cta"] {
  animation: rise-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both;
}

/* —— Scroll reveals —— */
[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-inview {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-child] {
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 90ms + 120ms);
}

[data-reveal].is-inview [data-reveal-child] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .page-bg,
  [data-enter],
  [data-reveal],
  [data-reveal-child] {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    filter: none !important;
  }
}

@media (min-width: 1431px) {
  .solutions-panel {
    padding-left: 80px;
    padding-right: 80px;
  }
}

@media (max-width: 1100px) {
  :root {
    --solutions-pad-x: 32px;
  }
}

@media (max-width: 860px) {
  :root {
    --side: 16px;
    --solutions-side: var(--side);
    --solutions-pad-x: 24px;
    --brand-logo-h: 28px;
    --header-inset: 10px;
  }

  .site-header {
    top: 10px;
    margin-top: 0;
    width: calc(100% - 2 * var(--side));
    padding: 10px var(--header-inset) 10px calc(var(--header-inset) + 6px);
  }

  .brand-logo {
    height: var(--brand-logo-h);
  }

  .header-actions {
    gap: 16px;
  }

  .header-faq {
    font-size: 13px;
  }

  .language-switch button {
    min-width: 34px;
    height: 32px;
    padding: 0 8px;
    font-size: 13px;
  }

  .btn-login {
    min-height: 38px;
    padding: 8px 16px;
    font-size: 14px;
  }

  .hero {
    min-height: calc(100svh - 90px);
    margin-top: 0;
    margin-bottom: 0;
    padding: 24px 0;
  }

  .hero-brand {
    gap: 12px;
    margin-bottom: 32px;
  }

  .hero-copy {
    margin-bottom: 40px;
  }

  .solutions {
    margin-top: 56px;
  }

  .solutions-panel {
    padding-top: 28px;
    padding-bottom: 24px;
    border-radius: 28px;
    margin-top: 0;
  }

  .solutions-layer {
    border-radius: 28px;
  }

  .solutions {
    padding-top: 28px;
    width: auto;
  }

  .solutions-layer-1 {
    top: 12px;
  }

  .industry-grid {
    gap: 12px;
  }

  .industry-card span {
    left: 12px;
    bottom: 12px;
  }

  .btn-cta {
    min-height: 52px;
    padding: 14px 28px;
    font-size: 17px;
  }

  .btn-cta.btn-cta-with-orb {
    --orb-size: 64px;
    --btn-h: 42px;
    --orb-inset: 0.5;
    padding: 0 28px 0 calc(var(--orb-size) * var(--orb-inset) + 12px);
    font-size: 16px;
  }

  .cta-orb {
    width: 52px;
    height: 52px;
    font-size: 52px;
  }

  .coming-soon {
    margin-top: 56px;
  }

  .support-panel {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 20px 0 36px;
  }

  .support-cards {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 28px;
  }

  .support-card {
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
  }

  .support-qr {
    margin: 0;
    flex-shrink: 0;
  }

  .site-footer {
    width: calc(100% - 2 * var(--side));
    margin: 72px auto 0;
    padding: 32px 0 max(28px, calc(16px + env(safe-area-inset-bottom, 0px)));
  }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-member {
    align-self: flex-start;
    width: auto;
    max-width: 100%;
    margin: 0;
    justify-content: flex-start;
    text-align: left;
  }

  .group-logo {
    object-position: left center;
  }
}

@media (max-width: 560px) {
  .header-actions {
    gap: 8px;
  }

  .industry-grid {
    grid-template-columns: 1fr;
  }

  .industry-card {
    aspect-ratio: 16 / 9;
  }

  .support-panel {
    gap: 24px;
  }

  .support-card {
    gap: 16px;
  }

  .support-qr {
    width: 88px;
    height: 88px;
  }

  .support-chat-btn {
    padding: 9px 18px;
    font-size: 13px;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .footer-member {
    white-space: normal;
  }
}
