/* ════════════════════════════════════════════════
   MUTRON · 沐創資訊 · 全站樣式
   Refined by expertise, delivering system value.
   ════════════════════════════════════════════════ */

:root {
  --accent: #65a30d;
  --accent-soft: #65a30d22;
  --accent-dark: #3f6b14;
  --accent-light: #d9f99d;
  --bg: #fafaf7;
  --bg-alt: #f3f1e9;
  --surface: #ffffff;
  --ink: #0a0a0a;
  --ink-soft: #2a2a26;
  --muted: #6b6356;
  --muted-light: #9a9080;
  --border: #e9e6db;
  --border-strong: #d4d0c0;

  --font: 'Inter', 'Noto Sans TC', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'IBM Plex Mono', 'SF Mono', monospace;

  --container: 1280px;
  --pad-x: 40px;
}

* {
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
}

html,
body {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15px;
  line-height: 1.55;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0;
  font-size: 1rem;
}

ol,
ul {
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
}

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

.mono {
  font-family: var(--mono);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  position: relative;
}

/* ───────────── NAV ───────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  padding: 0 var(--pad-x);
  background: rgba(250, 250, 247, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav .nav-links {
  margin-left: auto;
}

.nav .nav-burger {
  margin-left: auto;
}

.nav.is-scrolled {
  box-shadow: 0 1px 0 var(--border), 0 8px 20px -16px rgba(10, 10, 10, .1);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.logo-img {
  height: 36px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-cn {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .04em;
}

.logo-en {
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--muted);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 30px;
  font-size: 14px;
  font-weight: 500;
}

.nav-l {
  transition: opacity .15s, color .15s;
  opacity: .7;
  position: relative;
  padding: 4px 0;
}

.nav-l:hover {
  opacity: 1;
}

.nav-l.is-active {
  opacity: 1;
  color: var(--accent-dark);
}

.nav-l.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -22px;
  height: 2px;
  background: var(--accent);
}

.cta-pill {
  font-size: 13px;
  letter-spacing: .02em;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity .15s, transform .1s;
}

.cta-pill:hover {
  opacity: .85;
}

.cta-pill:active {
  transform: translateY(1px);
}

/* Hamburger button */
.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.nav-burger:hover {
  background: var(--bg-alt);
  border-color: var(--border-strong);
}

.nav-burger-bars {
  position: relative;
  width: 18px;
  height: 12px;
}

.nav-burger-bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s, opacity .15s, top .25s;
}

.nav-burger-bars span:nth-child(1) {
  top: 0;
}

.nav-burger-bars span:nth-child(2) {
  top: 5px;
}

.nav-burger-bars span:nth-child(3) {
  top: 10px;
}

.nav-burger.is-open .nav-burger-bars span:nth-child(1) {
  top: 5px;
  transform: rotate(45deg);
}

.nav-burger.is-open .nav-burger-bars span:nth-child(2) {
  opacity: 0;
}

.nav-burger.is-open .nav-burger-bars span:nth-child(3) {
  top: 5px;
  transform: rotate(-45deg);
}

/* Mobile drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 49;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 20px var(--pad-x) 28px;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  box-shadow: 0 16px 32px -16px rgba(10, 10, 10, .12);
  transform: translateY(-12px);
  opacity: 0;
  transition: opacity .2s, transform .2s, visibility .2s;
  visibility: hidden;
}

.mobile-drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.mobile-drawer-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 10px;
  transition: background .15s, color .15s;
}

.mobile-drawer-links a:hover,
.mobile-drawer-links a.is-active {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.mobile-drawer-links a::after {
  content: "→";
  opacity: .35;
  font-family: var(--mono);
}

.mobile-drawer-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.mobile-drawer-cta .btn {
  flex: 1;
  justify-content: center;
}

.mobile-drawer-meta {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-drawer-meta a {
  color: var(--accent-dark);
}

body.menu-open {
  overflow: hidden;
}

/* ───────────── COMMON ───────────── */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: .14em;
  color: var(--accent-dark);
  margin-bottom: 22px;
  font-weight: 600;
}

.section-eyebrow .rule {
  width: 24px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.section-title {
  line-height: 1.25;
  letter-spacing: -.025em;
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}

.section-title .em {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
  display: inline-block;
  margin-top: 8px;
}

.section-sub {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 720px;
}

.section-head {
  max-width: 880px;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all .15s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-dark);
}

.btn-ghost {
  border: 1px solid var(--ink);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
}

.btn-pill {
  border-radius: 999px;
  padding: 14px 24px;
}

.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chips span {
  font-family: var(--mono);
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-alt);
  color: var(--muted);
  border: 1px solid var(--border);
  letter-spacing: .04em;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(101, 163, 13, .5);
  display: inline-block;
}

/* ───────────── AI CASES (home · shared styles) ───────────── */
.ai-cases {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ai-case {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: 360px;
  box-shadow: 0 1px 0 rgba(10, 10, 10, .02);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.ai-case:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -20px rgba(10, 10, 10, .12);
}

.ai-case-flip .ai-case-text {
  order: 2;
}

.ai-case-flip .ai-case-mock {
  order: 1;
}

.ai-case-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
}

.ai-case-tag .num {
  font-size: 56px;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -.04em;
  font-family: var(--mono);
}

.ai-case-tag .tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .15em;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 600;
}

.ai-case-t {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 10px;
}

.ai-case-line {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent-dark);
  margin-bottom: 18px;
}

.ai-case-d {
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.7;
  opacity: .9;
  margin-bottom: 24px;
}

.ai-case-d b {
  color: var(--accent-dark);
  font-weight: 600;
}

.ai-case .metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-bottom: 18px;
}

.ai-case .metric {
  padding-left: 14px;
  border-left: 1px solid var(--border);
}

.ai-case .metric:first-child {
  padding-left: 0;
  border-left: 0;
}

.ai-case .m-v {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
  line-height: 1;
}

.ai-case .m-k {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
  margin-top: 6px;
}

.ai-case .chips {
  margin-bottom: 18px;
}

.ai-case-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-dark);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--accent);
  transition: gap .15s;
}

.ai-case-link:hover {
  gap: 10px;
}

@media (max-width: 1100px) {

  .ai-case,
  .ai-case.ai-case-flip {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 28px;
  }

  .ai-case-flip .ai-case-text {
    order: 1;
  }

  .ai-case-flip .ai-case-mock {
    order: 2;
  }
}

/* ───────────── HERO CHAT MOCK (Variant A) ───────────── */
.window {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.window-shadow {
  box-shadow:
    0 28px 60px -20px rgba(20, 20, 20, .18),
    0 6px 20px -10px rgba(20, 20, 20, .08);
}

.window-chrome {
  height: 32px;
  flex-shrink: 0;
  background: #f6f4ee;
  border-bottom: 1px solid #ececdf;
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.window-chrome .dots {
  display: flex;
  gap: 6px;
  margin-right: 14px;
}

.window-chrome .dots i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #e4e2d8;
  display: inline-block;
}

.window-title {
  font-family: var(--mono);
  font-size: 12px;
  color: #888477;
  letter-spacing: .06em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot-live {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  display: inline-block;
}

.window-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

.chat-sidebar {
  background: #fafaf6;
  border-right: 1px solid #ececdf;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.chat-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  color: #888477;
  letter-spacing: .08em;
}

.pill-count {
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 600;
}

.chat-session {
  padding: 6px 8px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 1px solid transparent;
}

.chat-session.is-active {
  background: #fff;
  border-color: #e6e4dc;
}

.session-id {
  font-family: var(--mono);
  font-size: 12px;
  color: #888477;
}

.chat-session.is-active .session-id {
  color: var(--ink);
  font-weight: 600;
}

.session-label {
  font-size: 12px;
  color: #a8a497;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chat-head {
  padding: 12px 18px;
  background: #fff;
  border-bottom: 1px solid #ececdf;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.chat-head-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.avatar-bot {
  background: var(--ink);
  color: #fff;
}

.chat-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.version-pill {
  font-family: var(--mono);
  font-size: 12px;
  color: #888477;
  padding: 2px 6px;
  background: #f6f4ee;
  border-radius: 3px;
}

.connected-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-dark);
  letter-spacing: .06em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.connected-tag .dot-live {
  box-shadow: 0 0 0 3px rgba(101, 163, 13, .2);
}

.chat-body {
  padding: 16px 18px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.bubble {
  max-width: 85%;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink);
  border: 1px solid #e6e4dc;
}

.bubble-user {
  align-self: flex-end;
  background: #f6f4ee;
}

.bubble-agent {
  align-self: flex-start;
  background: #fff;
  border-left: 2px solid var(--accent);
}

.bubble-name {
  font-family: var(--mono);
  font-size: 12px;
  color: #888477;
  margin-bottom: 4px;
  letter-spacing: .04em;
}

.tool-chip {
  align-self: flex-start;
  max-width: 85%;
  font-family: var(--mono);
  font-size: 12px;
  padding: 5px 9px;
  background: #fafaf6;
  border: 1px dashed #d4d2c5;
  border-radius: 6px;
  color: #5a5648;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tool-chip .arrow {
  color: var(--accent);
  font-weight: 600;
}

.tool-chip .tool-name {
  color: var(--ink);
}

.tool-chip .tool-args {
  color: #a8a497;
}

.chat-input {
  padding: 10px 18px;
  background: #fafaf6;
  border-top: 1px solid #ececdf;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.input-placeholder {
  font-size: 12px;
  color: #a8a497;
  flex: 1;
}

.kbd {
  font-family: var(--mono);
  font-size: 12px;
  padding: 3px 7px;
  background: #fff;
  border: 1px solid #ececdf;
  border-radius: 3px;
  color: #888477;
}

/* ───────────── STATS ───────────── */
.stats {
  padding: 36px var(--pad-x);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 12px 28px;
}

.stat+.stat {
  border-left: 1px solid var(--border);
}

.stat-n {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--ink);
}

.stat-n .sup {
  font-size: 32px;
  color: var(--accent);
  margin-left: 4px;
}

.stat-k {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  letter-spacing: .06em;
  font-weight: 500;
}

/* ───────────── PAGE HERO (subpages) ───────────── */
.page-hero {
  position: relative;
  padding: 80px var(--pad-x) 60px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.page-hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(10, 10, 10, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 10, 10, .04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, black 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at 30% 50%, black 20%, transparent 70%);
  opacity: .8;
}

.page-hero .container {
  max-width: 1280px;
}

.page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: .14em;
  color: var(--accent-dark);
  margin-bottom: 26px;
  font-weight: 600;
}

.page-hero-eyebrow .rule {
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.page-hero-title {
  line-height: 1.2;
  letter-spacing: -.03em;
  font-weight: 600;
  margin: 0;
  max-width: 1100px;
  text-wrap: balance;
}

.page-hero-title .em {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
  display: inline-block;
  margin-top: 8px;
}

.page-hero-sub {
  margin-top: 28px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 720px;
}

.page-hero-sub b {
  color: var(--ink);
  font-weight: 600;
}


.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  text-decoration: none;
  color: inherit;
}

.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -20px rgba(10, 10, 10, .12);
}

.product-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.product-card-num {
  font-family: var(--mono);
  font-size: 40px;
  font-weight: 300;
  color: var(--accent);
  letter-spacing: -.04em;
  line-height: 1;
}

.product-card-tag {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .14em;
  padding: 6px 10px;
  background: var(--bg-alt);
  border-radius: 4px;
}

.product-card-t {
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.015em;
}

.product-card-sub {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-dark);
  margin-top: 4px;
  letter-spacing: .02em;
}

.product-card-d {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  flex: 1;
}

.product-card-d b {
  color: var(--ink);
  font-weight: 600;
}

.product-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.product-card-cta {
  font-size: 13px;
  color: var(--accent-dark);
  font-weight: 600;
}


.home-cta .btn-ghost,
.page-cta .btn-ghost {
  border: 0;
  padding: 6px 0;
  background: transparent !important;
  color: rgba(255, 255, 255, .7);
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .02em;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .25);
  transition: color .15s, border-color .15s;
}

.home-cta .btn-ghost:hover,
.page-cta .btn-ghost:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, .7);
  transform: none;
}

.home-cta .btn-ghost::before,
.page-cta .btn-ghost::before {
  content: "→ ";
  color: var(--accent);
  margin-right: 4px;
}


.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0;
}

.feature-item {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature-item-h {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-item-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .1em;
}

.feature-item-t {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.feature-item-d {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* Product visual mockups */
.mock-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 24px 60px -32px rgba(10, 10, 10, .18);
  position: relative;
}

.mock-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.mock-h-l {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mock-h-dots {
  display: flex;
  gap: 5px;
}

.mock-h-dots i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--border-strong);
}

.mock-h-title {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
  margin-left: 10px;
}

.mock-h-status {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}



/* Loyalty visual (phone) */
.phone-frame {
  width: 280px;
  height: 480px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 36px;
  padding: 14px 10px;
  position: relative;
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .3);
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 18px;
  background: var(--ink);
  border-radius: 999px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 24px;
  padding: 26px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.ph-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.ph-greet {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.ph-points {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: -.01em;
}

.ph-points span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 2px;
}

.ph-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ph-card-h {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .06em;
}

.ph-task {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.ph-task-t {
  flex: 1;
  color: var(--ink);
}

.ph-task-pt {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-dark);
  font-weight: 700;
}

.ph-check {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  background: #fff;
  border: 1.5px solid var(--border-strong);
  color: var(--muted);
}

.ph-check-done {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 700;
}

.ph-bars {
  display: flex;
  align-items: end;
  gap: 5px;
  height: 50px;
  padding: 0 4px;
}

.ph-bar {
  flex: 1;
  background: var(--border-strong);
  border-radius: 3px;
}

.ph-bar.is-hit {
  background: var(--accent);
}

.ph-mall {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ph-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ph-item-pic {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--accent-light), var(--bg-alt));
  border-radius: 4px;
}

.ph-item-t {
  font-size: 12px;
  color: var(--ink);
  font-weight: 500;
}

.ph-item-pt {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent-dark);
  font-weight: 700;
}



/* ───────────── PAGE CTA ───────────── */
.page-cta {
  padding: 100px var(--pad-x);
  background: var(--ink);
  color: #fff;
}

.page-cta-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

.page-cta .section-eyebrow {
  color: var(--accent);
}

.page-cta .section-eyebrow .rule {
  background: var(--accent);
}

.page-cta-t {
  line-height: 1.25;
  letter-spacing: -.025em;
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}

.page-cta-t .em {
  display: inline-block;
  margin-top: 6px;
}

.page-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.page-cta .btn-primary {
  background: var(--accent);
  color: var(--ink);
}

.page-cta .btn-primary:hover {
  background: var(--accent-light);
}

/* .page-cta .btn-ghost styling shared with .home-cta .btn-ghost above */

/* ───────────── FOOTER ───────────── */
.footer {
  padding: 40px var(--pad-x);
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.footer-logo img {
  height: 28px;
}

.footer-logo .ft-name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .04em;
}

.footer-tagline {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 340px;
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .14em;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col a {
  font-size: 14px;
  color: var(--ink);
  opacity: .78;
  transition: opacity .15s;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--accent-dark);
}

.footer-bottom {
  max-width: 1280px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
}

/* ───────────── ENTRANCE ANIMATIONS ───────────── */
.product-card,
.case-card,
.pillar-card,
.step-card,
.custom-card,
.case-pill,
.industry-tag,
.asset-item {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s ease, transform .6s ease;
}

.product-card.is-visible,
.case-card.is-visible,
.pillar-card.is-visible,
.step-card.is-visible,
.custom-card.is-visible,
.case-pill.is-visible,
.industry-tag.is-visible,
.asset-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Universal title line wrapper for pre-em content */
.hero-title .ln,
.section-title .ln,
.page-hero-title .ln,
.home-about-title .ln,
.page-cta-t .ln,
.home-cta-t .ln {
  display: block;
}

/* ───────────── RESPONSIVE ───────────── */
/* ────── ≤ 1024px · Tablet ────── */
@media (max-width: 1024px) {
  :root {
    --pad-x: 32px;
    --container: 100%;
  }

  .page-cta-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

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

  .ai-case,
  .ai-case.ai-case-flip {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px;
  }

  .ai-case-flip .ai-case-text {
    order: 1;
  }

  .ai-case-flip .ai-case-mock {
    order: 2;
  }
}

/* ────── ≤ 720px · Mobile (landscape / large phone) ────── */
@media (max-width: 720px) {
  :root {
    --pad-x: 24px;
  }

  .container {
    padding: 0;
  }

  /* nav */
  .nav {
    height: 64px;
    padding: 0 20px;
  }

  .logo-en {
    display: none;
  }

  .logo-img {
    height: 32px;
  }

  .logo-cn {
    font-size: 15px;
  }

  .nav-links {
    display: none;
  }

  .nav .cta-pill {
    display: none;
  }

  .nav-burger {
    display: inline-flex;
  }

  /* type scale – shrink headings on mobile */
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  /* Force mobile drawer to display when toggled */
  .mobile-drawer {
    display: block;
    top: 64px;
    padding-left: 20px;
    padding-right: 20px;
  }

  /* type scales */

  /* sections – uniform padding */
  .services-overview,
  .page-hero {
    padding: 56px var(--pad-x);
  }

  .section-head {
    margin-bottom: 32px;
  }

  /* grids */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(3) {
    border-left: 0;
  }

  .stat:nth-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  .stat {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .stat-n {
    font-size: 46px;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  /* AI cases — text always before mock on mobile */
  .ai-case .ai-case-text {
    order: 1;
  }

  .ai-case .ai-case-mock {
    order: 2;
  }

  .ai-case-flip .ai-case-text {
    order: 1;
  }

  .ai-case-flip .ai-case-mock {
    order: 2;
  }

  /* AI cases */
  .ai-case,
  .ai-case.ai-case-flip {
    padding: 24px;
    gap: 24px;
  }

  .ai-case-t {
    font-size: 24px;
  }

  .ai-case-tag .num {
    font-size: 40px;
  }

  .ai-case .metrics {
    gap: 4px;
  }

  .ai-case .m-v {
    font-size: 18px;
  }

  /* misc cards */
  .product-card {
    padding: 24px;
  }

  /* phone & cases visual */
  .phone-frame {
    width: 240px;
    height: 420px;
  }

  /* footer */
  .footer {
    padding: 32px var(--pad-x);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  /* hero chat mock — hide SESSIONS sidebar on mobile */
  .window-body {
    grid-template-columns: 1fr !important;
  }

  .chat-sidebar {
    display: none;
  }

  /* ── 16px minimum font size for all content text ── */
  body,
  .section-eyebrow,
  .stat-k,
  .btn, .cta-pill,
  .ai-case-d, .ai-case-line, .ai-case-link,
  .ai-case .m-k,
  .product-card-d, .product-card-sub, .product-card-cta,
  .feature-item-t,
  .footer-col h4, .footer-col a, .footer-bottom,
  .mobile-drawer-meta,
  .pp-card-d, .pp-card-k, .pp-metric-k {
    font-size: 16px;
  }
}

/* ────── ≤ 375px · Mobile (iPhone SE / small) ────── */
@media (max-width: 375px) {
  :root {
    --pad-x: 16px;
  }

  .nav {
    padding: 0 14px;
  }

  .mobile-drawer {
    padding-left: 14px;
    padding-right: 14px;
  }

  /* type scales — tighter */
  .page-hero-eyebrow,
  .section-eyebrow {
    font-size: 12px;
    letter-spacing: .08em;
  }

  /* sections */
  .services-overview,
  .page-hero {
    padding: 44px var(--pad-x);
  }

  /* stats: 2 cols compact */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat {
    padding: 12px 14px;
  }

  .stat:nth-child(odd) {
    border-left: 0;
  }

  .stat:nth-child(even) {
    border-left: 1px solid var(--border);
  }

  .stat:nth-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  .stat-n {
    font-size: 36px;
  }

  .stat-k {
    font-size: 12px;
  }

  /* product/AI cards */
  .ai-case,
  .ai-case.ai-case-flip {
    padding: 20px;
    gap: 20px;
    border-radius: 12px;
  }

  .ai-case-t {
    font-size: 22px;
  }

  .ai-case-tag {
    gap: 10px;
  }

  .ai-case-tag .num {
    font-size: 32px;
  }

  .ai-case-tag .tag {
    font-size: 12px;
    letter-spacing: .1em;
  }

  .ai-case-line {
    font-size: 12px;
  }

  .ai-case-d {
    font-size: 13.5px;
  }

  /* metrics: keep 3 cols compact (more readable than tall 1-col list) */
  .ai-case .metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .ai-case .metric {
    padding: 0 8px;
    border-left: 1px solid var(--border);
    border-top: 0;
    margin-top: 0;
  }

  .ai-case .metric:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .m-v {
    font-size: 15px !important;
    letter-spacing: -.01em;
  }

  .m-k {
    font-size: 12px;
    letter-spacing: .04em;
  }

  /* asset & misc grids 1 col */
  .asset-grid {
    grid-template-columns: 1fr;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  /* chips — wrap nicely */
  .chips span {
    font-size: 12px;
    padding: 2px 6px;
  }

  /* cards padding */
  .pillar-card,
  .product-card,
  .svc-card {
    padding: 20px;
  }

  .pillar-card-t {
    font-size: 18px;
  }

  .product-card-t {
    font-size: 20px;
  }

  .product-card-num {
    font-size: 32px;
  }

  /* hero chat mock */
  .window-body {
    grid-template-columns: 1fr !important;
  }

  /* phone visual smaller */
  .phone-frame {
    width: 220px;
    height: 400px;
  }

  /* case cover smaller icon */
  .case-cover {
    height: 140px;
  }

  .case-cover-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
    right: 16px;
    top: 16px;
  }

  .case-cover-content {
    inset: 16px;
  }

  .case-body {
    padding: 18px 14px;
  }

  .case-t {
    font-size: 18px;
  }

  /* services tabs — already handled above (2 cols grid) */

  /* mock window chrome smaller */
  .window-chrome {
    padding: 0 10px;
  }

  .window-title {
    font-size: 12px;
  }

  .mock-box {
    padding: 18px;
  }

  .mock-h-title {
    font-size: 12px;
    margin-left: 6px;
  }


  /* footer tighter */
  .footer-tagline {
    font-size: 13px;
  }

  .footer-col h4 {
    font-size: 12px;
  }

  .footer-col a {
    font-size: 13px;
  }

  /* cta */
  .btn {
    padding: 11px 18px;
    font-size: 13px;
  }

  .btn-pill {
    padding: 12px 20px;
  }
}

/* ───────────── PRODUCT DETAIL PAGES ───────────── */
.pp-sec {
  padding: 90px var(--pad-x);
  border-top: 1px solid var(--border);
}

.pp-sec.alt {
  background: var(--bg-alt);
}

.pp-sec .container {
  max-width: 1200px;
}

.pp-lead {
  line-height: 1.8;
  color: var(--ink);
  opacity: .92;
  max-width: 880px;
}

.pp-lead b {
  color: var(--accent-dark);
  font-weight: 600;
}

.pp-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.pp-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.pp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.pp-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -20px rgba(10, 10, 10, .12);
}

.pp-card-k {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 14px;
}

.pp-card-t {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
  margin-bottom: 12px;
}

.pp-card-d {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}

.pp-card-d b {
  color: var(--ink);
  font-weight: 600;
}

.pp-table-wrap {
  margin-top: 40px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.pp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 640px;
}

.pp-table th,
.pp-table td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.pp-table thead th {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-alt);
}

.pp-table tbody tr:last-child td {
  border-bottom: 0;
}

.pp-table .is-us td {
  background: var(--accent-soft);
}

.pp-table .is-us td:first-child {
  font-weight: 700;
  color: var(--accent-dark);
}

.pp-metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.pp-metric {
  text-align: center;
  padding: 30px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.pp-metric-v {
  font-size: 44px;
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: -.02em;
  line-height: 1;
}

.pp-metric-k {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
}

.pp-quote {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
  max-width: 980px;
  border-left: 4px solid var(--accent);
  padding-left: 28px;
}

.pp-quote .em {
  color: var(--accent-dark);
}

@media (max-width: 900px) {

  .pp-grid-2,
  .pp-grid-3,
  .pp-metric-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .pp-sec {
    padding: 56px var(--pad-x);
  }

  .pp-quote {
    padding-left: 18px;
  }
}


/* ───────── PRODUCT PAGE · split hero (text + original product mock) ───────── */
.pp-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.pp-hero-text {
  min-width: 0;
}

.pp-hero-visual {
  min-width: 0;
  position: relative;
}

.pp-hero-visual .mock-box,
.pp-hero-visual .phone-frame {
  margin-left: auto;
  margin-right: auto;
}

.page-hero-illustration {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .pp-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 720px) {
  .page-hero-illustration {
    max-width: 360px;
  }
}