/* =========================================================
   OmniReva · 知悉未来
   Concept: from blurred to clear (知悉 = to see clearly).
   Pure white page, soft off-white cards, the app's brand blue
   and its muted secondary palette as gentle accents.
   ========================================================= */
:root {
  --bg: #FFFFFF;
  --soft: #F7F8FA;
  --soft-2: #F0F2F5;
  --line: #ECEEF2;
  --ink: #14161A;
  --ink-2: #5D6470;
  --ink-3: #9AA1AC;
  --accent: #4A69E2;
  --accent-hover: #3F5CD3;
  --accent-soft: #EEF2FD;
  --ok: #2E8B5E;
  --warn: #B26B1A;

  /* Muted palette from the app design system */
  --slate: #6F8FB3;
  --sage: #6E9E8C;
  --sand: #B4956C;
  --clay: #C2876A;
  --teal: #6FA3A0;

  --shadow-sm: 0 1px 2px rgba(20, 22, 26, .04), 0 2px 8px rgba(20, 22, 26, .04);
  --shadow-md: 0 1px 2px rgba(20, 22, 26, .04), 0 12px 32px -8px rgba(20, 22, 26, .10);
  --shadow-lg: 0 2px 4px rgba(20, 22, 26, .03), 0 30px 60px -20px rgba(40, 56, 110, .18);

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1160px;
  --pad: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(.22, .8, .24, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.6; letter-spacing: -.01em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol, ul { list-style: none; }
.container { max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; overflow: visible; }
.ic .fill { fill: currentColor; stroke: none; opacity: .16; }
.ic .solid { fill: currentColor; stroke: none; }

/* Icon badge: soft tinted tile with a subtle top highlight and inner hairline */
.badge-ic {
  display: grid; place-items: center; flex: none; color: var(--t, var(--accent));
  background: linear-gradient(180deg, color-mix(in srgb, var(--t, var(--accent)) 16%, white), color-mix(in srgb, var(--t, var(--accent)) 7%, white));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t, var(--accent)) 18%, transparent), inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 2px rgba(20, 22, 26, .05);
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.logo { display: inline-block; width: 30px; height: 13px; background: url("assets/zx-mark-dark.png") center / contain no-repeat; }
.logo-light { background-image: url("assets/zx-mark-light.png"); }

/* Tints */
.t-slate, .tint-slate { --t: var(--slate); }
.t-sage, .tint-sage { --t: var(--sage); }
.t-sand, .tint-sand { --t: var(--sand); }
.t-clay, .tint-clay { --t: var(--clay); }
.t-teal, .tint-teal { --t: var(--teal); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 500; white-space: nowrap; transition: background-color .25s, box-shadow .3s, transform .25s var(--ease); }
.btn:active { transform: scale(.98); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-xs { height: 28px; padding: 0 12px; font-size: 12.5px; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 6px 16px -6px rgba(74, 105, 226, .55); }
.btn-accent:hover { background: var(--accent-hover); box-shadow: 0 10px 22px -8px rgba(74, 105, 226, .6); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2A2D33; }
.btn-ghost { background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px #DCDFE5, var(--shadow-md); }
.btn .ic { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover .ic { transform: translateX(2px); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .8); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-name { font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { font-size: 14px; color: var(--ink-2); padding: 7px 14px; border-radius: 999px; transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--ink); background: var(--soft); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.lang { font-size: 13px; color: var(--ink-2); padding: 8px 10px; border-radius: 999px; }
.lang:hover { color: var(--ink); background: var(--soft); }

/* ---------- Motion: things come into focus ---------- */
.focus-in { opacity: 0; filter: blur(10px); transform: translateY(12px); animation: focusIn 1.1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes focusIn { to { opacity: 1; filter: blur(0); transform: none; } }
.blur-in { opacity: 0; filter: blur(8px); transform: translateY(18px); transition: opacity 1s var(--ease), filter 1s var(--ease), transform 1s var(--ease), box-shadow .7s var(--ease); transition-delay: var(--d, 0s); }
.blur-in.visible { opacity: 1; filter: blur(0); transform: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero-head { position: relative; z-index: 1; text-align: center; pointer-events: none; }
.hero-head a, .hero-head button { pointer-events: auto; }
.hero-top { position: relative; padding: clamp(24px, 4vw, 48px) 0 clamp(24px, 4vw, 56px); }
.space {
  position: absolute; inset: calc(-1 * clamp(56px, 8vw, 96px)) 0 0; z-index: 0; opacity: 0; animation: spaceIn 1.6s .2s var(--ease) forwards;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.space canvas { display: block; width: 100%; height: 100%; }
@keyframes spaceIn { to { opacity: 1; } }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); padding: 6px 14px; border-radius: 999px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.kicker-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(46, 139, 94, .14); }
h1 { margin-top: 24px; font-size: clamp(42px, 6.4vw, 76px); line-height: 1.1; font-weight: 600; letter-spacing: -.03em; }
.accent-ink { color: var(--accent); }
.br-m { display: none; }
.hero-sub { max-width: 620px; margin: 22px auto 0; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.75; color: var(--ink-2); }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Path stage: the four services in order */
.stage {
  position: relative; margin-top: clamp(48px, 6vw, 72px); border-radius: var(--r-xl); overflow: hidden;
  padding: clamp(36px, 5vw, 64px) clamp(24px, 4vw, 48px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  background:
    radial-gradient(50% 80% at 8% 30%, rgba(180, 149, 108, .10), transparent 70%),
    radial-gradient(50% 80% at 38% 70%, rgba(111, 143, 179, .10), transparent 70%),
    radial-gradient(50% 80% at 66% 30%, rgba(110, 158, 140, .10), transparent 70%),
    radial-gradient(50% 80% at 94% 70%, rgba(194, 135, 106, .10), transparent 70%),
    var(--soft);
  box-shadow: inset 0 0 0 1px var(--line);
}
.links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.links .wire { fill: none; stroke: #D9DEE6; stroke-width: 1.3; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1s var(--ease); }
.links .wire.on { stroke-dashoffset: 0; }
.links .flow { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 16; opacity: 0; transition: opacity .6s; animation: flow 1.6s linear infinite; }
.links .flow.on { opacity: .55; }
@keyframes flow { to { stroke-dashoffset: -18; } }

.pnode {
  position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: 6px;
  padding: 24px 16px 22px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-md), 0 0 0 1px var(--line);
  opacity: 0; filter: blur(6px); transform: translateY(8px);
  transition: opacity .8s var(--ease), filter .8s var(--ease), transform .6s var(--ease), box-shadow .4s;
}
.pnode.show { opacity: 1; filter: blur(0); transform: none; }
.pnode.show:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg), 0 0 0 1.5px color-mix(in srgb, var(--t) 45%, transparent); }
.pnode-step { font-size: 12px; font-weight: 600; color: var(--t); background: color-mix(in srgb, var(--t) 12%, white); padding: 3px 10px; border-radius: 999px; }
.pnode-ic { width: 56px; height: 56px; border-radius: 17px; margin: 10px 0 6px; }
.pnode-ic .ic { width: 30px; height: 30px; stroke-width: 1.7; transition: transform .5s var(--ease); }
.pnode:hover .pnode-ic .ic { transform: scale(1.08) rotate(-4deg); }
.pnode b { font-size: 16.5px; font-weight: 600; }
.pnode p { font-size: 13px; color: var(--ink-2); }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-tight { padding-top: 0; }
.sec-head { max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px); }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 12px; }
h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.18; font-weight: 600; letter-spacing: -.025em; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -.015em; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.svc {
  position: relative; border-radius: var(--r-xl); padding: 32px 32px 0; background: var(--soft); overflow: hidden;
  display: flex; flex-direction: column; gap: 28px; min-height: 480px; box-shadow: inset 0 0 0 1px var(--line);
}
.svc::before { content: ""; position: absolute; inset: 0 0 auto; height: 60%; background: linear-gradient(180deg, color-mix(in srgb, var(--t) 12%, transparent), transparent); pointer-events: none; }
.svc > * { position: relative; }
.svc.visible { transition: transform .7s var(--ease), box-shadow .7s var(--ease); }
.svc.visible:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg); }
.svc-head { display: flex; align-items: center; justify-content: space-between; }
.svc-ic { width: 48px; height: 48px; border-radius: 14px; }
.svc-ic .ic { width: 26px; height: 26px; stroke-width: 1.7; }
.svc-no { font-family: var(--mono); font-size: 12.5px; color: var(--t); font-weight: 600; }
.svc h3 { margin-top: 18px !important; }
.svc h3 { font-size: 24px; margin-top: 8px; }
.svc-text p { margin-top: 8px; color: var(--ink-2); max-width: 400px; }
.svc-visual {
  flex: 1; margin: 0 -8px; padding: 22px; border-radius: var(--r-lg) var(--r-lg) 0 0; background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 -8px 30px -12px rgba(20, 22, 26, .08);
  transform: translateY(14px); transition: transform .7s var(--ease);
}
.svc:hover .svc-visual { transform: translateY(4px); }

/* 3D scene panel inside each service card */
.svc-visual { position: relative; padding: 0; min-height: 320px; overflow: hidden;
  background:
    radial-gradient(70% 80% at 50% 35%, color-mix(in srgb, var(--t) 14%, white), transparent 75%),
    linear-gradient(180deg, #FFFFFF, color-mix(in srgb, var(--t) 6%, white));
}
.anim { position: absolute; inset: 0; }
.anim canvas { display: block; width: 100%; height: 100%; }
.scene-cap { position: absolute; z-index: 1; left: 14px; top: 14px; pointer-events: none; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 5px 11px; white-space: nowrap; color: var(--t); background: rgba(255, 255, 255, .78); box-shadow: 0 0 0 1px var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* App build → deploy → live */
.ab { position: absolute; inset: 52px 22px 26px; display: grid; transition: opacity .5s var(--ease); }
.ab.fade { opacity: 0; }
.ab-win { display: grid; grid-template-rows: auto 1fr auto; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-md); overflow: hidden; }
.ab-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.ab-bar i { width: 8px; height: 8px; border-radius: 50%; background: #E3E6EB; }
.ab-title { margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.ab-status { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--warn); background: rgba(178, 107, 26, .1); padding: 3px 9px; border-radius: 999px; transition: color .4s, background-color .4s; }
.ab-status em { font-style: normal; }
.ab-status b { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ab.live .ab-status { color: var(--ok); background: rgba(46, 139, 94, .1); }
.ab.live .ab-status b { animation: pulseDot 1.4s infinite; }
@keyframes pulseDot { 0% { box-shadow: 0 0 0 0 rgba(46, 139, 94, .5); } 100% { box-shadow: 0 0 0 7px rgba(46, 139, 94, 0); } }
.ab-body { display: grid; grid-template-columns: 70px 1fr; min-height: 0; }
.ab-side { display: grid; gap: 8px; align-content: start; padding: 12px 10px; border-right: 1px solid var(--line); background: var(--soft); }
.ab-side span { height: 10px; border-radius: 5px; background: #E3E6EB; }
.ab-side span:first-child { background: color-mix(in srgb, var(--t) 45%, white); }
.ab-main { display: flex; flex-direction: column; gap: 7px; padding: 12px; min-width: 0; }
.ab-msg { max-width: 82%; padding: 7px 11px; border-radius: 13px; font-size: 12.5px; line-height: 1.45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-msg.in { align-self: flex-start; background: var(--soft-2); border-bottom-left-radius: 4px; }
.ab-msg.out { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.ab-stats { margin-top: auto; display: flex; align-items: flex-end; gap: 12px; }
.ab-chart { flex: 1; height: 44px; display: flex; align-items: flex-end; gap: 4px; }
.ab-chart i { flex: 1; height: 10%; border-radius: 3px 3px 1px 1px; background: color-mix(in srgb, var(--t) 55%, white); transition: height .35s var(--ease); }
.ab-chart i:last-child { background: var(--t); }
.ab-count { text-align: right; line-height: 1.1; }
.ab-count small { display: block; font-size: 10.5px; color: var(--ink-3); }
.ab-count b { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
/* Parts materialise: blurred placeholder → crisp content */
.ab-side span, .ab-msg, .ab-stats { opacity: 0; filter: blur(6px); transform: translateY(6px); transition: opacity .5s var(--ease), filter .5s var(--ease), transform .5s var(--ease); }
.ab-side span.on, .ab-msg.on, .ab-stats.on { opacity: 1; filter: blur(0); transform: none; }
.ab.skeleton .ab-main::before, .ab.skeleton .ab-main::after { content: ""; display: block; height: 22px; border-radius: 11px; background: linear-gradient(90deg, #EEF0F4 25%, #F7F8FA 50%, #EEF0F4 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.ab.skeleton .ab-main::before { width: 60%; }
.ab.skeleton .ab-main::after { width: 75%; align-self: flex-end; }
@keyframes shimmer { to { background-position: -200% 0; } }
.ab-deploy { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--ink-2); }
.ab-step { min-width: 78px; font-weight: 600; }
.ab.live .ab-step { color: var(--ok); }
.ab-prog { flex: 1; height: 5px; border-radius: 5px; background: var(--soft-2); overflow: hidden; }
.ab-prog b { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--t) 50%, white), var(--t)); transition: width .2s linear; }
.ab.live .ab-prog b { background: var(--ok); }
.ab-pct { width: 34px; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; text-align: center; border-radius: var(--r-xl); padding: clamp(48px, 8vw, 96px) var(--pad); background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.contact-glow { position: absolute; inset: 0; background: radial-gradient(40% 60% at 30% 100%, rgba(111, 143, 179, .16), transparent 70%), radial-gradient(40% 60% at 70% 0%, rgba(194, 135, 106, .14), transparent 70%); pointer-events: none; }
.contact > * { position: relative; }
.contact p { margin: 14px auto 0; color: var(--ink-2); max-width: 480px; font-size: 17px; }
.contact-actions { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Footer ---------- */
.footer { padding: 8px 0 40px; }
.footer-legal a { margin-left: 14px; color: var(--ink-3); }
.footer-legal a:hover { color: var(--ink-2); text-decoration: underline; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }

.tabbar { display: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 820px) {
  .services { grid-template-columns: 1fr; }
  .stage { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .nav-inner { height: 58px; }
  .nav-links { display: none; }
  .br-m { display: block; }
  h1 { font-size: clamp(40px, 11.5vw, 52px); }
  .hero-actions .btn { flex: 1 1 100%; max-width: 340px; }
  .hero-top { padding-top: 0; }
  .space { position: relative; inset: auto; height: 240px; margin: -24px 0 -8px; }
  .stage { grid-template-columns: 1fr 1fr; gap: 14px; padding: 20px 14px; border-radius: var(--r-lg); }
  .pnode { padding: 18px 10px 16px; }
  .pnode-ic { width: 44px; height: 44px; border-radius: 13px; margin: 6px 0 2px; }
  .pnode b { font-size: 15px; }
  .svc { padding: 24px 20px 0; min-height: 0; border-radius: var(--r-lg); }
  .svc-visual { min-height: 280px; }

  .tabbar { display: flex; position: fixed; z-index: 55; left: 50%; transform: translateX(-50%); width: min(300px, calc(100% - 24px)); bottom: calc(12px + env(safe-area-inset-bottom)); height: 62px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); }
  .tab-thumb { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 3); border-radius: 999px; background: var(--accent-soft); transition: transform .45s var(--ease); }
  .tabbar a { flex: 1; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10px; font-weight: 500; color: var(--ink-2); transition: color .3s; }
  .tabbar a .ic { width: 21px; height: 21px; }
  .tabbar a:not(.is-active) .ic .fill { opacity: 0; }
  .tabbar a.is-active { color: var(--accent); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; }
  .focus-in, .blur-in, .pnode { opacity: 1 !important; filter: none !important; transform: none !important; }
}
