:root {
  /* V2 palette: deep indigo blue, warm paper, amber for human review. */
  --paper: #F8F8F6;
  --tint: #EEF1F3;
  --surface: #FFFFFF;
  --ink: #17222B;
  --muted: #5C6670;
  --faint: #66727C;
  --line: #D9DFE4;
  --brand: #2E5C85;
  --brand-ink: #FFFFFF;
  --brand-soft: #E0EBF2;
  --amber: #A36118;
  --amber-soft: #F3E7D7;
  --wrap: 1240px;
  --section: clamp(72px, 8vw, 112px);
  --gutter: clamp(20px, 4.5vw, 56px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0D1216;
    --tint: #151C22;
    --surface: #11181D;
    --ink: #EDF1F4;
    --muted: #ADB8C1;
    --faint: #94A0A9;
    --line: #29343D;
    --brand: #75B4D6;
    --brand-ink: #071820;
    --brand-soft: #17313F;
    --amber: #E2A558;
    --amber-soft: #352A1B;
    color-scheme: dark;
  }
}

body.v2 {
  line-height: 1.75;
  letter-spacing: .015em;
  overflow-x: clip;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 8px 14px;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform .2s;
}

.skip-link:focus { transform: none; }

body.v2 .site-header { background: color-mix(in srgb, var(--paper) 94%, transparent); }
.header-inner { position: relative; }
body.v2 .site-header .wrap { min-height: 72px; }
body.v2 .nav { gap: clamp(18px, 2.2vw, 30px); }
body.v2 .nav a { font-size: .875rem; }
body.v2 .nav .compare-link { color: var(--muted); font-size: .75rem; }
body.v2 .nav .nav-cta { padding: 8px 15px; }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  place-items: center;
  cursor: pointer;
}

.menu-toggle span[aria-hidden] {
  position: absolute;
  width: 17px;
  height: 1px;
  background: currentColor;
  transition: transform .25s var(--ease);
}

.menu-toggle span[aria-hidden]:first-of-type { transform: translateY(-3px); }
.menu-toggle span[aria-hidden]:last-of-type { transform: translateY(3px); }
.menu-toggle[aria-expanded="true"] span[aria-hidden]:first-of-type { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span[aria-hidden]:last-of-type { transform: rotate(-45deg); }

body.v2 .hero {
  padding-block: clamp(72px, 8vw, 112px);
  overflow: visible;
}

body.v2 .hero-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

body.v2 .hero-copy {
  grid-column: 1 / span 7;
  gap: 28px;
}

body.v2 .hero h1 {
  max-width: 10.5em;
  font-size: clamp(2.75rem, 2rem + 3vw, 4rem);
  line-height: 1.28;
  letter-spacing: .045em;
}

body.v2 .hero h1 .accent { display: block; }
body.v2 .lead { max-width: 35em; font-size: var(--fs-lg); line-height: 1.85; }
body.v2 .hero-actions { gap: 16px 28px; }

.hero-system {
  grid-column: 8 / -1;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 30px 80px -58px rgba(24, 45, 58, .65);
  animation: fadeUp .9s .2s var(--ease) both;
}

.system-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.system-head > span { display: flex; align-items: center; gap: 10px; }
.system-head i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.system-head strong { font-size: var(--fs-sm); font-weight: 500; letter-spacing: .04em; }
.system-head small, .system-kicker {
  font-family: var(--mono);
  font-size: .625rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
}

.system-body { padding: clamp(18px, 3vw, 28px); }
.mail-card, .extract-card { border: 1px solid var(--line); padding: 16px 18px; }
.mail-card { width: 84%; background: var(--tint); }
.mail-card strong { display: block; margin: 7px 0 4px; font-size: var(--fs-sm); font-weight: 500; }
.mail-card p { font-size: var(--fs-xs); color: var(--muted); line-height: 1.7; }
.system-arrow { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 45px; color: var(--brand); font-family: var(--mono); }
.system-arrow span { font-size: .625rem; letter-spacing: .1em; color: var(--faint); }
.extract-card { margin-left: 16%; }
.extract-card > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-xs); }
.extract-card > div:last-child { border-bottom: 0; }
.extract-card b { color: var(--brand); font-weight: 500; }
.extract-card b.human { color: var(--amber); }
.review-row { display: flex; align-items: center; gap: 13px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.review-icon { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--paper); background: var(--ink); }
.review-row p { font-size: var(--fs-xs); line-height: 1.5; }
.review-row strong { font-weight: 500; }
.review-row small { color: var(--muted); }

.section-intro { display: flex; flex-direction: column; gap: 20px; }
.section-intro h2, .contact-copy h2 {
  font-family: var(--display);
  font-size: clamp(1.875rem, 1.35rem + 1.8vw, 2.625rem);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: .05em;
}
.section-intro > p { max-width: 37em; color: var(--muted); }

.proof-section { padding-block: var(--section); }
.proof-intro, .services-intro { margin-bottom: clamp(40px, 6vw, 64px); }

.product-showcase { display: grid; grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr); gap: clamp(40px, 7vw, 88px); align-items: center; }
.product-visual { position: relative; min-width: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); }
.product-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(.96); }
.product-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(24, 45, 58, .06), transparent); pointer-events: none; }
.product-phones { position: absolute; inset: 4% 8%; display: flex; align-items: center; justify-content: center; gap: 5%; }
.product-phones img { height: 76%; width: auto; border: 3px solid #211D23; border-radius: 18px; box-shadow: 0 28px 52px -22px rgba(0, 0, 0, .5); }
.product-phones .front { height: 90%; position: relative; z-index: 1; }
.visual-caption { position: absolute; left: 16px; bottom: 14px; z-index: 2; padding: 4px 9px; background: color-mix(in srgb, var(--paper) 90%, transparent); color: var(--muted); font-family: var(--mono); font-size: .625rem; letter-spacing: .1em; }

.product-copy { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.product-meta { display: flex; align-items: center; gap: 12px; color: var(--brand); font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em; }
.product-meta em { padding: 2px 8px; border: 1px solid var(--amber); color: var(--amber); font-family: var(--body); font-style: normal; letter-spacing: .08em; }
.product-copy h3 { font-family: var(--display); font-size: clamp(2rem, 1.5rem + 1.5vw, 2.75rem); line-height: 1.2; display: flex; flex-direction: column; gap: 8px; }
.product-copy h3 small { font-family: var(--body); font-size: var(--fs-sm); color: var(--muted); letter-spacing: .08em; }
.product-copy > p { color: var(--muted); }
.capability-list { margin: 0; border-top: 1px solid var(--line); }
.capability-list div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-xs); }
.capability-list dt { font-weight: 500; }
.capability-list dd { margin: 0; color: var(--muted); text-align: right; }
.transfer-note { padding: 16px 18px; border-left: 2px solid var(--brand); background: var(--brand-soft); color: var(--ink) !important; font-size: var(--fs-xs); }
.transfer-note span { display: block; margin-bottom: 3px; color: var(--brand); font-weight: 500; }

.fit-section { padding-block: clamp(64px, 7vw, 96px); background: var(--tint); }
.compact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
.compact-grid > .section-intro { grid-column: 1 / span 4; }
.fit-list { grid-column: 6 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.fit-list li { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
.fit-list li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
.fit-list span { display: block; margin-bottom: 7px; font-weight: 500; }
.fit-list p { color: var(--muted); font-size: var(--fs-xs); }

.services-section { padding-block: var(--section); }
.service-index { border-top: 1px solid var(--ink); }
.service-index a { display: grid; grid-template-columns: 52px minmax(0, 3fr) minmax(0, 6fr) 32px; gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; transition: color .25s var(--ease); }
.service-index span { font-family: var(--mono); font-size: .6875rem; color: var(--brand); }
.service-index strong { font-family: var(--display); font-weight: 500; font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); letter-spacing: .05em; }
.service-index p { color: var(--muted); font-size: var(--fs-sm); }
.service-index i { justify-self: end; font-style: normal; color: var(--faint); transition: transform .25s var(--ease), color .25s var(--ease); }
.service-index a:hover strong, .service-index a:hover i { color: var(--brand); }
.service-index a:hover i { transform: translateX(4px); }

.process-section, .faq-section { padding-block: var(--section); }
.process-list { grid-column: 6 / -1; border-top: 1px solid var(--ink); }
.process-list li { display: grid; grid-template-columns: 42px 1fr auto; gap: 20px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.process-list li > span { padding-top: 3px; font-family: var(--mono); font-size: .6875rem; color: var(--brand); }
.process-list h3 { margin: 0 0 3px; font-family: var(--display); font-size: var(--fs-lg); font-weight: 500; letter-spacing: .05em; }
.process-list p { color: var(--muted); font-size: var(--fs-xs); }
.process-list small { padding-top: 3px; color: var(--faint); font-family: var(--mono); font-size: .6875rem; }

.faq-section { background: var(--paper); }
.faq-section .faq { grid-column: 6 / -1; }
body.v2 .faq summary { padding-block: 20px; }
body.v2 .faq details p { max-width: 44em; padding-bottom: 22px; }

body.v2 .contact { padding-block: var(--section); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 8vw, 112px); align-items: start; }
.contact-copy { display: flex; flex-direction: column; gap: 24px; }
.contact-copy > p { max-width: 31em; color: color-mix(in srgb, var(--paper) 68%, var(--ink)); }
.contact-copy .channels { margin-top: 18px; }
body.v2 .contact .form { gap: 24px 28px; }

body.v2 .site-footer { padding-block: 40px calc(32px + 64px); border-top: 1px solid var(--line); }
body.v2 .foot { align-items: center; }
.foot-brand { color: var(--ink); }
body.v2 .foot-meta a { color: var(--brand); }

body.v2 .cw-launch {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility 0s .25s;
}

body.v2.chat-ready .cw-launch,
body.v2:has(.cw-panel:not([hidden])) .cw-launch {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition-delay: 0s;
}

@media (max-width: 1000px) {
  body.v2 .hero-copy { grid-column: 1 / span 6; }
  .hero-system { grid-column: 7 / -1; }
  body.v2 .hero h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
  .product-showcase { grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr); gap: 40px; }
  .product-visual { min-height: 0; }
}

@media (max-width: 900px) {
  .menu-toggle { display: grid; margin-left: auto; }
  body.v2 .nav {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    top: calc(100% + 1px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 20px;
    border: 1px solid var(--line);
    border-top: 0;
    background: var(--paper);
    box-shadow: 0 24px 48px -32px rgba(0, 0, 0, .4);
  }
  body.v2 .nav.is-open { display: flex; }
  body.v2 .nav a,
  body.v2 .nav a:not(.nav-cta):not(.lang) { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  body.v2 .nav .compare-link { color: var(--muted); }
  body.v2 .nav .nav-cta { margin-top: 12px; padding: 11px 14px; text-align: center; }

  body.v2 .hero-grid { grid-template-columns: 1fr; }
  body.v2 .hero-copy, .hero-system { grid-column: 1; }
  body.v2 .hero-copy { max-width: 680px; }
  .hero-system { width: min(100%, 620px); }

  .product-showcase { grid-template-columns: 1fr; }
  .product-visual { min-height: 0; aspect-ratio: 16 / 10; }
  .product-copy { max-width: 680px; }

  .compact-grid { grid-template-columns: 1fr; }
  .compact-grid > .section-intro, .fit-list, .process-list, .faq-section .faq { grid-column: 1; }
  .compact-grid > .section-intro { max-width: 620px; margin-bottom: 32px; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-copy { max-width: 620px; }
}

@media (max-width: 720px) {
  :root { --section: 72px; }
  body.v2 { line-height: 1.75; }
  body.v2 .site-header .wrap { min-height: 68px; }
  body.v2 .hero { padding-top: 64px; }
  body.v2 .hero-grid { gap: 44px; }
  body.v2 .hero-copy { gap: 24px; }
  body.v2 .hero h1 { max-width: none; font-size: clamp(2.25rem, 10.5vw, 2.75rem); line-height: 1.32; letter-spacing: .025em; }
  body.v2 .lead { font-size: 1rem; line-height: 1.8; }
  body.v2 .hero-actions { align-items: stretch; flex-direction: column; gap: 14px; }
  body.v2 .hero-actions .btn { width: 100%; }
  body.v2 .hero-actions .text-link { align-self: flex-start; }

  .system-head { padding: 14px; }
  .system-body { padding: 16px; }
  .mail-card { width: 92%; }
  .extract-card { margin-left: 8%; }

  .section-intro { gap: 16px; }
  .section-intro h2, .contact-copy h2 { font-size: clamp(1.75rem, 8vw, 2.125rem); line-height: 1.45; }
  .service-index a { grid-template-columns: 30px minmax(0, 1fr) 20px; gap: 6px 12px; padding: 20px 0; }
  .service-index p { grid-column: 2; grid-row: 2; }
  .service-index i { grid-column: 3; grid-row: 1; }

  .product-visual { aspect-ratio: 1 / 1; }
  .product-phones { inset: 3% 5%; gap: 3%; }
  .product-phones img { height: 66%; border-width: 2px; border-radius: 13px; }
  .product-phones .front { height: 80%; }
  .product-copy { gap: 17px; }
  .product-copy h3 { font-size: 2rem; }
  .capability-list div { flex-direction: column; gap: 2px; }
  .capability-list dd { text-align: left; }

  .fit-list { grid-template-columns: 1fr; }
  .fit-list li, .fit-list li:nth-child(even) { padding: 18px 0; border-left: 0; }

  .process-list li { grid-template-columns: 34px 1fr; gap: 14px; }
  .process-list small { grid-column: 2; text-align: left; }
  body.v2 .faq summary { padding-block: 18px; line-height: 1.6; }

  body.v2 .contact .form { grid-template-columns: 1fr; }
  body.v2 .contact .form .full { grid-column: 1; }
  body.v2 .foot { align-items: flex-start; }
  body.v2 .cw-launch { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-system, body.v2 .hero-copy > * { animation: none; }
  .menu-toggle span[aria-hidden], body.v2 .cw-launch { transition: none; }
}

.proof-section .concepts { margin-top: clamp(56px, 7vw, 96px); }

/* 暗色模式：聯絡區原本是「反色」區塊，暗色下會變成大面積亮色。
   改為在區塊內把 ink / paper 換成深色底＋淺色字，維持和頁面相近的明度。 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.v2 .contact {
    --ink: #151E26;
    --paper: #E6ECF1;
  }
  :root:not([data-theme="light"]) body.v2 .contact { border-top: 1px solid var(--line); }
}
:root[data-theme="dark"] body.v2 .contact {
  --ink: #151E26;
  --paper: #E6ECF1;
}

/* 表單個資告知（首頁與服務頁共用） */
.form-privacy { grid-column: 1 / -1; font-size: .75rem; color: color-mix(in srgb, var(--paper) 55%, var(--ink)); }
