:root {
  --ink: #29263d;
  --muted: #676376;
  --paper: #fff;
  --soft: #f5f3fb;
  --line: #e7e3ee;
  --purple: #6c55da;
  --purple-dark: #5137b8;
  --navy: #29213f;
  --shadow: 0 24px 64px -28px rgba(47, 32, 91, 0.28);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 5px; }
::selection { color: var(--ink); background: #e4dcff; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 100; padding: 12px 20px; border-radius: 8px; color: white; background: var(--purple-dark); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.section-shell, .site-footer { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 88px;
  padding: 14px max(40px, calc((100% - 1180px) / 2));
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.96);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(41, 38, 61, 0.035); }
.brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; }
.brand-logo { display: block; width: 45px; height: 45px; object-fit: contain; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 0.96rem; line-height: 1.5; font-weight: 750; }
.brand small { margin-top: 1px; color: var(--muted); font-size: 0.7rem; letter-spacing: 0.05em; }
.site-nav { display: flex; justify-content: flex-end; align-items: center; gap: 28px; font-size: 0.9rem; font-weight: 600; }
.site-nav a { padding-block: 10px; color: var(--muted); transition: color 160ms ease; }
.site-nav a:hover { color: var(--purple-dark); }
.header-cta, .primary-button, .secondary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 23px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.header-cta, .primary-button { color: white; background: var(--purple); }
.header-cta { min-height: 44px; padding: 10px 18px; font-size: 0.88rem; }
.header-cta:hover, .primary-button:hover { background: var(--purple-dark); box-shadow: 0 5px 16px rgba(81, 55, 184, 0.16); }
.secondary-button { border-color: var(--line); background: white; color: var(--ink); }
.secondary-button:hover { border-color: #c3b8e5; background: var(--soft); }
.nav-toggle { display: none; }

h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
h1 { margin-bottom: 24px; font-size: clamp(2.5rem, 4.2vw, 3.7rem); line-height: 1.3; letter-spacing: -0.045em; font-weight: 750; }
h1 span, h2 span { display: block; }
h2 { margin-bottom: 20px; font-size: clamp(1.85rem, 2.8vw, 2.6rem); line-height: 1.45; letter-spacing: -0.025em; font-weight: 700; }
h3 { margin-bottom: 12px; font-size: 1.16rem; line-height: 1.6; font-weight: 700; }
h4 { margin-bottom: 12px; line-height: 1.6; }
p { color: var(--muted); font-size: 1rem; line-height: 1.95; }
.eyebrow { margin-bottom: 18px; color: var(--purple-dark); font-size: 0.82rem; font-weight: 750; letter-spacing: 0.12em; line-height: 1.6; }
.hero { display: grid; grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr); align-items: center; gap: 52px; padding-block: 88px 96px; }
.hero-copy, .hero-visual, .problem, .solution, .workflow-copy, .integration-card > *, .customer-copy, .contact-panel { min-width: 0; }
.hero-text { max-width: 32em; margin-bottom: 30px; font-size: 1.05rem; line-height: 1.95; }
.hero-text span { display: inline; }
.hero-text strong { color: var(--ink); font-weight: 650; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hero-note { margin: 0; font-size: 0.84rem; }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 30px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-stats dt { margin-bottom: 7px; font-size: 1.15rem; font-weight: 700; }
.hero-stats dd { margin: 0; color: var(--muted); font-size: 0.8rem; line-height: 1.7; }
.hero-visual { position: relative; margin: 0; padding: 20px; border-radius: 20px; background: #f0ebfa; }
.hero-visual::before { content: ""; position: absolute; inset: -36px -14px; z-index: -1; border-radius: 50%; background: radial-gradient(ellipse, #f3effa, transparent 70%); }
.product-screenshot { overflow: hidden; border: 1px solid #dcd5e9; border-radius: 9px; background: white; box-shadow: var(--shadow); }
.product-screenshot img { display: block; width: 100%; height: auto; }
.product-caption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; color: #625575; font-size: 0.78rem; line-height: 1.7; }

.contrast, .values, .workflow, .customer { padding-block: 92px; border-top: 1px solid var(--line); }
.section-intro { max-width: 740px; margin-bottom: 44px; }
.section-intro.narrow { max-width: 780px; }
.section-intro p:last-child { max-width: 42em; margin-bottom: 0; }
.section-intro p span { display: inline; }
.contrast-list { border-top: 1px solid var(--line); }
.contrast-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding-block: 32px; border-bottom: 1px solid var(--line); }
.problem { position: relative; padding-left: 56px; }
.problem > span { position: absolute; top: 3px; left: 0; color: #8b7da7; font-size: 0.83rem; font-weight: 650; letter-spacing: 0.04em; }
.problem h3 { max-width: 23em; }
.problem p, .solution p { margin-bottom: 0; font-size: 0.95rem; }
.solution { padding-left: 28px; border-left: 2px solid #ded5f6; }
.solution h4 { color: var(--purple-dark); font-size: 0.85rem; font-weight: 700; }
.value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 40px; }
.value-grid article { padding-block: 26px 0; border-top: 1px solid var(--line); }
.value-grid article p { margin-bottom: 0; font-size: 0.95rem; }
.icon-badge { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 18px; border-radius: 9px; color: var(--purple-dark); font-size: 0.85rem; font-weight: 750; background: #f0ebfa; }
.workflow { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 80px; align-items: start; }
.workflow-copy { position: sticky; top: 120px; }
.workflow-steps { position: relative; }
.workflow-steps::before { content: ""; position: absolute; top: 24px; bottom: 45px; left: 20px; width: 1px; background: #ded5f0; }
.workflow-steps article { position: relative; padding: 0 0 32px 66px; }
.workflow-steps article:last-child { padding-bottom: 0; }
.workflow-steps article > span { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 41px; height: 41px; border: 1px solid #e0d9ed; border-radius: 50%; background: white; color: var(--purple-dark); font-size: 0.78rem; font-weight: 700; }
.workflow-steps article h3 { padding-top: 4px; margin-bottom: 7px; }
.workflow-steps article p { margin-bottom: 0; font-size: 0.95rem; }
.integration { padding-bottom: 92px; }
.integration-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 48px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
.integration-card p:last-child { margin-bottom: 0; }
.integration-flow { display: grid; grid-template-columns: 1fr 24px 1fr 24px 1fr; gap: 10px; align-items: center; }
.integration-flow span { display: grid; place-items: center; min-height: 100px; padding: 14px 10px; border: 1px solid #e0d9ed; border-radius: 10px; background: white; font-size: 0.9rem; font-weight: 650; line-height: 1.7; text-align: center; }
.integration-flow i { position: relative; height: 1px; background: #ac9cc9; }
.integration-flow i::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid #ac9cc9; border-right: 1px solid #ac9cc9; transform: rotate(45deg); }
.customer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.6fr); align-items: center; gap: 80px; }
.customer-copy p:last-child { margin-bottom: 0; }
.customer-card { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 22px; padding: 36px 24px; border: 1px solid var(--line); border-radius: 12px; }
.customer-logo { width: 72px; height: 72px; object-fit: contain; }
.customer-card strong { display: block; font-size: 1.15rem; }
.customer-card p { margin-bottom: 0; }

.contact { padding-block: 24px 84px; }
.contact-panel { padding: 60px 48px; border-radius: 18px; color: white; text-align: center; background: #392755; }
.contact-panel h2 { max-width: 24em; margin-inline: auto; }
.contact-panel p { max-width: 640px; margin: 0 auto 28px; color: #e0d8ed; }
.contact-panel .eyebrow { color: #cfc0f2; }
.contact-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.primary-button.light { color: #392755; background: white; }
.primary-button.light:hover { background: #f0ebfa; }
.secondary-button.light { color: white; border-color: #79678e; background: transparent; }
.secondary-button.light:hover { background: #4a3668; }
.contact-panel :focus-visible { outline-color: #e1d1ff; }
.contact-email { display: inline-block; margin-top: 22px; color: #e4dbee; font-size: 0.95rem; overflow-wrap: anywhere; text-underline-offset: 5px; }
.contact-email:hover { text-decoration: underline; }
.contact-panel .contact-note { margin-top: 18px; margin-bottom: 0; font-size: 0.82rem; }
.contact-panel [data-copy-status] { min-height: 1.8em; margin: 12px auto 0; font-size: 0.83rem; }
.contact-panel [data-copy-status]:empty { min-height: 0; margin: 0; }
.site-footer { padding-block: 0 28px; }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 64px; padding-block: 42px; border-top: 1px solid var(--line); }
.footer-brand-block p { max-width: 26em; margin: 16px 0 0; font-size: 0.9rem; }
.footer-column h2 { margin-bottom: 20px; font-size: 0.9rem; }
.footer-column ul { display: grid; gap: 16px; padding: 0; margin: 0; list-style: none; }
.footer-column span, .footer-column strong, .footer-column a { display: block; }
.footer-column span { margin-bottom: 5px; color: var(--muted); font-size: 0.78rem; }
.footer-column strong, .footer-column a { font-size: 0.92rem; line-height: 1.7; font-weight: 500; overflow-wrap: anywhere; }
.footer-column a:hover { color: var(--purple-dark); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-bottom p { margin: 0; font-size: 0.76rem; }

@media (max-width: 1080px) {
  .site-header { gap: 20px; padding-inline: 28px; }
  .site-nav { gap: 18px; font-size: 0.84rem; }
  .brand strong { font-size: 0.86rem; }
  .section-shell, .site-footer { width: calc(100% - 56px); }
  .hero { gap: 32px; padding-block: 66px 76px; }
  h1 { font-size: clamp(2.2rem, 4.2vw, 3rem); }
  .hero-visual { padding: 14px; }
  .workflow, .customer { gap: 44px; }
  .contrast-item { gap: 36px; }
  .integration-card { padding: 36px; gap: 32px; }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 94px; }
  .site-header { min-height: 76px; grid-template-columns: minmax(0, 1fr) 44px; padding: 12px 24px; gap: 16px; }
  .brand strong { font-size: 0.92rem; }
  .brand-logo { width: 40px; height: 40px; }
  .header-cta { display: none; }
  .nav-toggle { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: white; }
  .nav-toggle span { display: block; width: 19px; height: 2px; background: var(--ink); transition: transform 160ms ease; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .site-nav { position: absolute; inset: calc(100% - 1px) 16px auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: 0 16px 30px rgba(41, 38, 61, 0.1); }
  .site-nav.is-open { display: flex; }
  .site-nav a { min-height: 48px; padding: 14px 16px; border-radius: 6px; font-size: 0.95rem; }
  .site-nav a:hover { background: var(--soft); }
  .section-shell, .site-footer { width: calc(100% - 48px); }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 38px; padding-block: 48px 64px; }
  .hero-copy { max-width: 620px; }
  h1 { font-size: clamp(2.3rem, 6vw, 3.25rem); }
  .hero-text { max-width: 38em; }
  .hero-visual { width: 100%; padding: 18px; }
  .hero-visual::before { display: none; }
  .hero-stats { max-width: 560px; }
  .contrast, .values, .workflow, .customer { padding-block: 64px; }
  .section-intro { margin-bottom: 32px; }
  .contrast-item { gap: 28px; }
  .problem { padding-left: 38px; }
  .solution { padding-left: 20px; }
  .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .workflow, .customer, .integration-card { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .workflow-copy { position: static; }
  .workflow-copy p { margin-bottom: 0; }
  .workflow-steps { max-width: 640px; }
  .integration { padding-bottom: 64px; }
  .customer-card { justify-content: flex-start; padding: 26px; }
  .contact { padding-block: 12px 56px; }
  .contact-panel { padding: 44px 28px; }
  .footer-main { gap: 36px; }
}

@media (max-width: 520px) {
  .site-header { padding-inline: 20px; gap: 10px; }
  .brand { gap: 8px; }
  .brand strong { font-size: 0.83rem; }
  .brand small { font-size: 0.65rem; }
  .brand-logo { width: 36px; height: 36px; }
  .section-shell, .site-footer { width: calc(100% - 40px); }
  h1 { margin-bottom: 22px; font-size: clamp(2rem, 8.7vw, 2.7rem); line-height: 1.35; letter-spacing: -0.04em; }
  h2 { font-size: 1.7rem; line-height: 1.5; }
  h3 { font-size: 1.12rem; }
  .eyebrow { font-size: 0.78rem; }
  .hero { padding-top: 36px; }
  .hero-text { font-size: 1rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-stats { gap: 12px; }
  .hero-stats dt { font-size: 1.06rem; }
  .hero-stats dd { font-size: 0.76rem; }
  .hero-visual { padding: 10px; border-radius: 12px; }
  .product-caption { margin-top: 10px; font-size: 0.72rem; }
  .contrast-item { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 28px; }
  .solution { margin-left: 38px; padding-left: 16px; }
  .value-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .value-grid article { padding-top: 22px; }
  .icon-badge { margin-bottom: 14px; }
  .workflow-steps article { padding-left: 56px; }
  .integration-card { padding: 26px 22px; }
  .integration-flow { grid-template-columns: 1fr; gap: 16px; }
  .integration-flow span { min-height: 64px; }
  .integration-flow i { width: 1px; height: 18px; margin-inline: auto; }
  .integration-flow i::after { top: auto; right: -3px; bottom: 0; transform: rotate(135deg); }
  .contact-panel { padding: 38px 22px; border-radius: 12px; }
  .contact-actions { display: grid; }
  .contact-email { font-size: 0.83rem; }
  .footer-main { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { display: grid; }
}

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