/* ForAI HELP homepage: quiet precision, editorial rhythm, and restrained motion. */
:root {
  --home-bg: #0b0f10;
  --home-surface: #111718;
  --home-ink: #f1f3ef;
  --home-muted: #aab2ad;
  --home-line: rgb(228 237 230 / 15%);
  --home-accent: #b8d5c5;
  --home-accent-ink: #102018;
}

html {
  background: var(--home-bg);
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  color: var(--home-ink);
  background: var(--home-bg);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  overflow-x: clip;
}

::selection { color: #0b1310; background: #b8d5c5; }

a { color: inherit; text-underline-offset: 5px; }

:is(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--home-accent);
  outline-offset: 4px;
}

.site-header {
  width: min(1240px, calc(100% - 48px));
  min-height: 78px;
  margin: 0 auto;
  padding: 16px 4px;
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--home-line);
}

.site-header .brand {
  margin-right: auto;
  color: var(--home-ink);
  font-size: 19px;
  font-weight: 650;
  letter-spacing: 0;
}

.site-header .brand b { color: #c5d0c9; font-weight: 450; }
.site-header .mark { width: 34px; height: 34px; border-radius: 8px; }
.site-header nav { display: flex; align-items: center; gap: 28px; margin: 0; color: #c2cac5; font-size: 14px; }
.site-header nav > a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; transition: color 240ms cubic-bezier(.22,.61,.36,1); }
.site-header nav > a:hover { color: #fff; }
.site-header .header-tools { gap: 14px; }
.site-header .header-action { border-radius: 8px; }

.home-more { position: relative; margin: 0; padding: 0; border: 0; font-size: 14px; }
.home-more summary { min-height: 44px; display: flex; align-items: center; padding: 0; color: #c2cac5; cursor: pointer; list-style: none; }
.home-more summary::-webkit-details-marker { display: none; }
.home-more summary::after { content: "+"; margin-left: 8px; color: #9daaa2; }
.home-more[open] summary::after { content: "−"; }
.home-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: #151c1d;
  box-shadow: 0 18px 42px rgb(0 0 0 / 28%);
}
.home-menu a { display: block; padding: 10px 12px; border-radius: 4px; color: #e4e9e5; text-decoration: none; transition: background 220ms cubic-bezier(.22,.61,.36,1); }
.home-menu a:hover { background: #202a28; }

.centered-hero {
  width: min(1240px, calc(100% - 48px));
  min-height: min(720px, calc(100svh - 78px));
  margin-inline: auto;
  padding: 56px 0 76px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(350px, .96fr);
  align-items: center;
  gap: clamp(36px, 7vw, 100px);
  text-align: left;
  isolation: isolate;
  overflow: visible;
  background: none;
}

.centered-hero::before, .centered-hero::after { display: none; }
.centered-hero .hero-copy { max-width: 670px; }
.centered-hero h1 {
  max-width: 10.5em;
  margin: 0 0 24px;
  color: var(--home-ink);
  font-size: clamp(44px, 5.2vw, 72px);
  font-weight: 630;
  line-height: 1.19;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.centered-hero h1 span { color: var(--home-accent); background: none; -webkit-text-fill-color: currentColor; }
.centered-hero .lead { max-width: 34ch; margin: 0; color: var(--home-muted); font-size: 18px; line-height: 1.85; text-wrap: pretty; }
.centered-hero .actions { justify-content: flex-start; gap: 20px; margin-top: 32px; }
.centered-hero .button {
  min-height: 52px;
  padding: 12px 18px 12px 22px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  border: 1px solid #c6dccf;
  border-radius: 8px;
  color: var(--home-accent-ink);
  background: var(--home-accent);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 45%);
  font-size: 15px;
  font-weight: 650;
  transition: transform 320ms cubic-bezier(.22,.61,.36,1), background 320ms cubic-bezier(.22,.61,.36,1), box-shadow 320ms cubic-bezier(.22,.61,.36,1);
}
.centered-hero .button:hover { transform: translateY(-2px); color: var(--home-accent-ink); background: #c8dfd1; box-shadow: 0 12px 28px rgb(0 0 0 / 22%); }
.centered-hero .button span { font-size: 17px; transition: transform 320ms cubic-bezier(.22,.61,.36,1); }
.centered-hero .button:hover span { transform: translate(2px, -2px); }

.premium-art {
  width: 100%;
  max-width: 560px;
  height: clamp(310px, 37vw, 470px);
  margin: 0;
  display: grid;
  place-items: center;
  position: relative;
}
.premium-art::before {
  content: "";
  position: absolute;
  inset: 13% 7%;
  border: 1px solid rgb(232 239 234 / 11%);
  border-radius: 50%;
  transform: rotate(-22deg) scaleY(.56);
}
.premium-art::after {
  content: "";
  position: absolute;
  width: 70%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(184 213 197 / 34%), transparent);
  transform: rotate(-22deg);
}
.premium-art .art-aura { display: none; }
.premium-art img {
  position: relative;
  z-index: 1;
  width: min(108%, 590px);
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 28px rgb(0 0 0 / 32%));
  animation: sculpture-drift 10s cubic-bezier(.22,.61,.36,1) infinite alternate;
}

.section { padding-block: clamp(76px, 9vw, 124px); }
#services.section { background: var(--home-surface); }
.section-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section-head h2, h2 {
  color: var(--home-ink);
  font-size: clamp(31px, 3.7vw, 48px);
  font-weight: 590;
  line-height: 1.25;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.section-head h2 { margin: 0; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0 clamp(28px, 5vw, 70px);
}
.category-grid .service-card {
  min-width: 0;
  min-height: 196px;
  padding: 26px 0 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  border: 0;
  border-top: 1px solid var(--home-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: border-color 300ms cubic-bezier(.22,.61,.36,1), transform 300ms cubic-bezier(.22,.61,.36,1);
}
.category-grid .service-card:nth-child(1) { grid-column: span 7; }
.category-grid .service-card:nth-child(2) { grid-column: span 5; }
.category-grid .service-card:nth-child(3) { grid-column: span 5; }
.category-grid .service-card:nth-child(4) { grid-column: span 7; }
.category-grid .service-card:nth-child(5) { grid-column: 1 / -1; min-height: 140px; border-bottom: 1px solid var(--home-line); }
.category-grid .service-card:hover, .category-grid .service-card:focus-within { transform: translateY(-2px); border-color: rgb(184 213 197 / 52%); box-shadow: none; }
.category-grid .service-card::before { content: none; }
.category-grid .service-card h3 { margin: 0; color: var(--home-ink); font-size: 23px; font-weight: 570; line-height: 1.4; letter-spacing: -.015em; }
.category-grid .service-card p { max-width: 48ch; margin: 10px 0 14px; color: var(--home-muted); font-size: 15px; line-height: 1.75; }
.category-grid .service-card .text-link { min-height: 44px; margin-top: auto; padding: 4px 0; display: inline-flex; align-items: center; gap: 8px; border: 0; color: var(--home-accent); font-size: 14px; font-weight: 570; text-decoration: none; }
.category-grid .service-card .text-link:hover { color: #e0eee5; text-decoration: underline; text-underline-offset: 5px; }

#process.section { background: var(--home-bg); }
#process .section-head { margin-bottom: 48px; }
.steps { display: grid; grid-template-columns: .9fr 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); }
.steps li { min-width: 0; padding-top: 20px; border-top: 1px solid var(--home-line); }
.steps li > span { color: #879b8f; font-family: ui-monospace, SFMono-Regular, monospace; font-size: 12px; font-variant-numeric: tabular-nums; }
.steps h3 { margin: 24px 0 10px; color: var(--home-ink); font-size: 20px; font-weight: 560; line-height: 1.5; }
.steps p { max-width: 34ch; margin: 0; color: var(--home-muted); font-size: 15px; line-height: 1.8; }

#contact.section.wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(76px, 9vw, 116px) max(24px, calc((100% - 1120px) / 2));
  color: #17211c;
  background: #e7ece8;
}
.contact-layout { max-width: 1120px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(32px, 7vw, 88px); align-items: start; }
.contact-layout h2 { max-width: 9em; margin: 0 0 20px; color: #19231e; font-size: clamp(34px, 4.5vw, 52px); font-weight: 610; line-height: 1.24; letter-spacing: -.03em; }
.contact-layout > div > p:not(.eyebrow) { color: #55635b; font-size: 16px; line-height: 1.8; }
.contact-layout .eyebrow { margin: 0 0 14px; color: #416b57; font-size: 13px; font-weight: 650; letter-spacing: .04em; }
.contact-layout .button.outline { min-height: 48px; margin-top: 20px; padding: 10px 16px; border: 1px solid #9eafa4; border-radius: 8px; color: #244a36; background: transparent; text-decoration: none; }
.contact-layout .button.outline:hover { transform: translateY(-2px); color: #17211c; background: #f4f6f4; }
.contact-layout .form-note { margin-top: 18px; color: #58645d; font-size: 13px; }
.contact-layout .form-note a { color: #244a36; }
.contact-layout form {
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid #d0d8d2;
  border-radius: 8px;
  background: #f7f8f6;
  box-shadow: 0 18px 50px rgb(25 43 33 / 9%);
}
.contact-layout .form-banner { margin: 0; padding: 10px 12px; border: 0; border-radius: 4px; color: #315541; background: #e7eee9; font-size: 13px; }
.contact-layout label { min-width: 0; margin: 0; color: #34433a; font-size: 13px; font-weight: 600; }
.contact-layout .form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.contact-layout input, .contact-layout select, .contact-layout textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin-top: 7px;
  padding: 11px 13px;
  border: 1px solid #b9c5bc !important;
  border-radius: 5px !important;
  color: #18231d !important;
  background: #fff !important;
  box-shadow: none !important;
  font: inherit;
  font-size: 15px !important;
}
.contact-layout textarea { min-height: 124px; resize: vertical; }
.contact-layout input::placeholder, .contact-layout textarea::placeholder { color: #737f77; }
.contact-layout input:focus, .contact-layout select:focus, .contact-layout textarea:focus { border-color: #527b63 !important; }
.contact-layout form .button.full {
  min-height: 50px;
  border: 1px solid #234d37;
  border-radius: 6px;
  color: #f7faf7;
  background: #234d37;
  font-size: 15px;
  font-weight: 630;
  transition: transform 280ms cubic-bezier(.22,.61,.36,1), background 280ms cubic-bezier(.22,.61,.36,1);
}
.contact-layout form .button.full:hover { transform: translateY(-1px); background: #2e6247; }
.contact-layout form .button.full:disabled { opacity: .62; cursor: wait; }
.contact-layout form .form-note { margin: 0; color: #536057; font-size: 12px; line-height: 1.7; }

footer {
  padding: 38px 0 24px;
  border-top: 1px solid var(--home-line);
  color: #aab2ad;
  background: var(--home-bg);
}
.footer-top { display: flex; align-items: center; gap: 24px; }
.footer-top .brand { color: var(--home-ink); font-size: 18px; }
.footer-top .brand b { color: #c5d0c9; }
.footer-top p { color: #8f9993; font-size: 14px; }
.footer-top > div { margin-left: auto; display: flex; flex-wrap: wrap; gap: 12px 22px; font-size: 13px; }
.footer-top > div a, .footer-bottom a { color: #b9c2bc; text-decoration: none; }
.footer-top > div a:hover, .footer-bottom a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--home-line); color: #858f89; font-size: 12px; }

.personal-float {
  position: fixed;
  z-index: 30;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: block !important;
}
.personal-float a {
  min-height: 48px;
  padding: 11px 17px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgb(220 236 225 / 24%);
  border-radius: 8px;
  color: #e3eee7;
  background: #18231e;
  box-shadow: 0 8px 25px rgb(0 0 0 / 26%);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 280ms cubic-bezier(.22,.61,.36,1), background 280ms cubic-bezier(.22,.61,.36,1);
}
.personal-float a:hover { transform: translateY(-2px); background: #24372c; }

@keyframes sculpture-drift {
  from { transform: translateY(2px) rotate(-1deg); }
  to { transform: translateY(-7px) rotate(1deg); }
}

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

@media (prefers-reduced-motion: no-preference) {
  .centered-hero .hero-copy { animation: home-arrive 760ms cubic-bezier(.16,1,.3,1) both; }
  .centered-hero .premium-art { animation: home-arrive 900ms 110ms cubic-bezier(.16,1,.3,1) both; }
}

@media (max-width: 760px) {
  .site-header { width: calc(100% - 36px); min-height: 66px; padding: 11px 0; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; }
  .site-header .brand { grid-column: 1; grid-row: 1; font-size: 17px; }
  .site-header .mark { width: 30px; height: 30px; }
  .site-header .header-tools { grid-column: 2; grid-row: 1; gap: 5px; }
  .site-header .header-tools > .header-action { display: none; }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 10px; padding-top: 5px; font-size: 13px; }
  .site-header nav > a, .home-more summary { min-height: 42px; }
  .home-menu { left: auto; right: 0; }

  .centered-hero {
    width: calc(100% - 40px);
    min-height: 0;
    padding: 56px 0 52px;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .centered-hero h1 { max-width: 12em; margin-bottom: 18px; font-size: clamp(38px, 11vw, 52px); line-height: 1.22; letter-spacing: -.03em; }
  .centered-hero .lead { max-width: 31ch; font-size: 16px; line-height: 1.8; }
  .centered-hero .actions { margin-top: 24px; }
  .centered-hero .button { min-height: 50px; font-size: 14px; }
  .premium-art { width: 100%; max-width: 440px; height: clamp(240px, 68vw, 320px); margin: 0 auto; }
  .premium-art::before { inset: 12% 8%; }

  .section { padding-block: 70px; }
  .section-head { margin-bottom: 32px; text-align: left; }
  .section-head h2, h2 { font-size: clamp(30px, 8vw, 38px); }
  .category-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .category-grid .service-card,
  .category-grid .service-card:nth-child(n) { grid-column: 1; min-height: 0; padding: 23px 0 24px; }
  .category-grid .service-card:nth-child(5) { min-height: 0; }
  .category-grid .service-card h3 { font-size: 21px; }
  .category-grid .service-card p { max-width: 42ch; font-size: 15px; }

  .steps { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .steps li { padding-top: 16px; }
  .steps h3 { margin: 14px 0 6px; font-size: 19px; }

  #contact.section.wrap { padding: 72px 20px; }
  .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .contact-layout h2 { max-width: 11em; font-size: 36px; }
  .contact-layout .form-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .contact-layout form { padding: 21px 17px; gap: 14px; }

  .footer-top { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .footer-top > div { margin: 8px 0 0; gap: 10px 17px; }
  .footer-bottom { display: grid; gap: 8px; }
  .personal-float { display: none !important; }
}

@media (max-width: 360px) {
  .site-header { width: calc(100% - 28px); }
  .site-header nav { gap: 8px; font-size: 12px; }
  .site-header .header-tools .language-switcher button { min-width: 34px; }
  .centered-hero { width: calc(100% - 32px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Refined editorial hierarchy and motion, shared by both language homepages. */
.centered-hero { gap: clamp(44px, 8vw, 116px); }
.centered-hero .hero-copy::before {
  content: "AI SETUP  /  TRAINING  /  SUPPORT";
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: #b8d5c5;
  font: 600 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
}
.centered-hero .hero-copy::after {
  content: none;
  margin-top: 23px;
  color: #8f9b94;
  font-size: 13px;
  line-height: 1.65;
}
html[lang="en"] .centered-hero .hero-copy::after {
  content: "Individuals & teams  ·  Remote or onsite  ·  Scope agreed first";
  display: block;
}
.centered-hero .hero-copy::before { border-left: 1px solid #83a892; padding-left: 11px; }
.hero-details { margin-top: 23px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; color: #8f9b94; font-size: 13px; line-height: 1.65; }
.hero-details span + span::before { content: "/"; margin-right: 12px; color: #68776e; }
.centered-hero h1 { max-width: 11em; margin-bottom: 20px; line-height: 1.13; }
.centered-hero .lead { max-width: 36ch; }
.centered-hero .button {
  min-height: 58px;
  padding: 7px 8px 7px 23px;
  gap: 24px;
  border-radius: 999px;
  transition: transform 300ms cubic-bezier(.22,1,.36,1), background 300ms cubic-bezier(.22,1,.36,1), box-shadow 300ms cubic-bezier(.22,1,.36,1);
}
.centered-hero .button span {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #eff7f1;
  background: #234d37;
  transition: transform 360ms cubic-bezier(.22,1,.36,1), background 300ms cubic-bezier(.22,1,.36,1);
}
.centered-hero .button:hover span { transform: translate(2px,-2px) scale(1.04); background: #173e2c; }
.centered-hero .button:active { transform: scale(.985); }
.premium-art {
  padding: 12px;
  border: 1px solid rgb(232 239 234 / 13%);
  border-radius: 14px;
  background: linear-gradient(145deg, rgb(255 255 255 / 3%), transparent 58%);
}
.premium-art::before { inset: 15% 9%; }
.premium-art img { width: min(100%, 590px); }
.section-head { max-width: 1120px; margin-bottom: 44px; text-align: left; }
.section-head::before {
  display: block;
  margin-bottom: 13px;
  color: #89a493;
  font: 600 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .09em;
}
#services .section-head::before { content: "01  /  服務方向"; }
#process .section-head::before { content: "02  /  合作流程"; }
html[lang="en"] #services .section-head::before { content: "01  /  WHAT WE DO"; }
html[lang="en"] #process .section-head::before { content: "02  /  HOW WE WORK"; }
.category-grid .service-card { position: relative; padding-top: 19px; }
.category-grid { counter-reset: home-service; }
.category-grid .service-card::before {
  content: "0" counter(home-service);
  counter-increment: home-service;
  display: block;
  margin-bottom: 17px;
  color: #7f9789;
  font: 500 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .06em;
}
.category-grid .service-card:nth-child(5)::before { content: "05"; }
.steps { gap: clamp(34px, 6vw, 82px); }
.steps li { transition: border-color 360ms cubic-bezier(.22,1,.36,1); }
.steps li:hover { border-color: rgb(184 213 197 / 55%); }
.contact-layout > div { padding-top: 10px; }
.contact-layout form { transition: transform 420ms cubic-bezier(.22,1,.36,1), box-shadow 420ms cubic-bezier(.22,1,.36,1); }
.contact-layout form:focus-within { transform: translateY(-3px); box-shadow: 0 24px 60px rgb(25 43 33 / 13%); }

.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 680ms cubic-bezier(.16,1,.3,1), transform 680ms cubic-bezier(.16,1,.3,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.motion-ready [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.category-grid .service-card:nth-child(2), .steps li:nth-child(2) { --reveal-delay: 70ms; }
.category-grid .service-card:nth-child(3), .steps li:nth-child(3) { --reveal-delay: 140ms; }
.category-grid .service-card:nth-child(4) { --reveal-delay: 70ms; }
.category-grid .service-card:nth-child(5) { --reveal-delay: 140ms; }

@media (max-width: 760px) {
  .centered-hero { gap: 20px; }
  .centered-hero .hero-copy::before { margin-bottom: 17px; font-size: 10px; }
  .centered-hero .hero-copy::after { margin-top: 17px; font-size: 12px; }
  .hero-details { margin-top: 17px; font-size: 12px; }
  .centered-hero h1 { margin-bottom: 15px; }
  .centered-hero .actions { align-items: flex-start; }
  .centered-hero .button { min-height: 54px; padding-inline: 19px 7px; }
  .centered-hero .button span { width: 38px; height: 38px; }
  .premium-art { padding: 6px; border-radius: 10px; }
  .section-head { margin-bottom: 30px; }
  .category-grid .service-card::before { margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .motion-ready [data-reveal] { opacity: 1; transform: none; }
}
