:root {
  color-scheme: light;
  --bg: #f4f6f4;
  --hero: #101316;
  --hero-2: #171c1f;
  --surface: #ffffff;
  --surface-soft: #f9faf8;
  --ink: #0f1417;
  --ink-soft: #2a3439;
  --muted: #637173;
  --line: rgba(15, 20, 23, 0.12);
  --line-strong: rgba(15, 20, 23, 0.2);
  --mint: #66e7c4;
  --mint-strong: #08765e;
  --amber: #edc05f;
  --violet: #8c8df5;
  --body-grid: rgba(102, 231, 196, 0.08);
  --body-gradient: linear-gradient(180deg, #f7f8f5 0%, var(--bg) 52%, #eef2ef 100%);
  --body-overlay:
    linear-gradient(180deg, rgba(16, 19, 22, 0.02), transparent 55%),
    radial-gradient(circle at 82% 8%, rgba(102, 231, 196, 0.18), transparent 28%);
  --header-bg: rgba(255, 255, 255, 0.84);
  --stats-bg: rgba(255, 255, 255, 0.5);
  --card-bg: rgba(255, 255, 255, 0.72);
  --card-shadow: 0 18px 42px rgba(16, 19, 22, 0.05);
  --mint-card-bg: #fbfcfa;
  --hero-fg: #0f1417;
  --hero-copy: #435155;
  --hero-muted: #657477;
  --hero-line: rgba(15, 20, 23, 0.12);
  --hero-grid: rgba(32, 180, 134, 0.1);
  --hero-bg:
    linear-gradient(90deg, var(--hero-grid) 0 1px, transparent 1px 56px),
    linear-gradient(145deg, #ffffff 0%, #f5faf7 58%, #e9f0ed 100%);
  --console-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 248, 0.72)),
    #ffffff;
  --console-panel-bg: rgba(255, 255, 255, 0.66);
  --console-shadow: 0 34px 90px rgba(16, 19, 22, 0.12);
  --bubble-user-bg: rgba(102, 231, 196, 0.22);
  --bubble-ai-bg: rgba(15, 20, 23, 0.045);
  --panel-fg: #0f1417;
  --panel-copy: #4b5b5e;
  --panel-line: rgba(15, 20, 23, 0.12);
  --panel-accent: #08765e;
  --panel-grid: rgba(32, 180, 134, 0.09);
  --panel-bg:
    linear-gradient(90deg, var(--panel-grid) 0 1px, transparent 1px 44px),
    linear-gradient(135deg, #ffffff, #f3f8f5);
  --workflow-step-bg: #e9f2ef;
  --shadow: 0 24px 70px rgba(16, 19, 22, 0.12);
  --font-display: "Sora", "Noto Sans TC", "Noto Sans SC", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans TC", "Noto Sans SC", "Noto Sans JP", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1416;
  --surface: #151b1e;
  --surface-soft: #111719;
  --ink: #f5fbf8;
  --ink-soft: #d8e3df;
  --muted: #9eafad;
  --line: rgba(245, 251, 248, 0.14);
  --line-strong: rgba(245, 251, 248, 0.24);
  --mint-strong: #66e7c4;
  --body-grid: rgba(102, 231, 196, 0.055);
  --body-gradient: linear-gradient(180deg, #0b1012 0%, var(--bg) 52%, #11191b 100%);
  --body-overlay:
    linear-gradient(180deg, rgba(245, 251, 248, 0.035), transparent 52%),
    radial-gradient(circle at 82% 8%, rgba(102, 231, 196, 0.11), transparent 30%);
  --header-bg: rgba(17, 23, 25, 0.86);
  --stats-bg: rgba(19, 26, 28, 0.62);
  --card-bg: rgba(21, 28, 30, 0.76);
  --card-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
  --mint-card-bg: #14211f;
  --hero-fg: #f5fbf8;
  --hero-copy: rgba(245, 251, 248, 0.76);
  --hero-muted: rgba(245, 251, 248, 0.56);
  --hero-line: rgba(255, 255, 255, 0.11);
  --hero-grid: rgba(102, 231, 196, 0.07);
  --hero-bg:
    linear-gradient(90deg, var(--hero-grid) 0 1px, transparent 1px 56px),
    linear-gradient(145deg, var(--hero) 0%, #12191b 55%, #0b0f12 100%);
  --console-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    #141a1d;
  --console-panel-bg: rgba(255, 255, 255, 0.045);
  --console-shadow: 0 34px 90px rgba(0, 0, 0, 0.28);
  --bubble-user-bg: rgba(102, 231, 196, 0.13);
  --bubble-ai-bg: rgba(255, 255, 255, 0.065);
  --panel-fg: #f5fbf8;
  --panel-copy: rgba(245, 251, 248, 0.72);
  --panel-line: rgba(255, 255, 255, 0.12);
  --panel-accent: #66e7c4;
  --panel-grid: rgba(102, 231, 196, 0.08);
  --panel-bg:
    linear-gradient(90deg, var(--panel-grid) 0 1px, transparent 1px 44px),
    linear-gradient(135deg, #111618, #1a2325);
  --workflow-step-bg: #111618;
  --shadow: 0 28px 78px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html[lang="zh-Hans"] {
  --font-display: "Sora", "Noto Sans SC", "Noto Sans TC", sans-serif;
  --font-body: "Noto Sans SC", "Noto Sans TC", sans-serif;
}

html[lang="ja"] {
  --font-display: "Sora", "Noto Sans JP", "Noto Sans TC", sans-serif;
  --font-body: "Noto Sans JP", "Noto Sans TC", sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    linear-gradient(90deg, var(--body-grid) 0 1px, transparent 1px 48px),
    var(--body-gradient);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: var(--body-overlay);
  opacity: 0.7;
}

.page-shell {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow-x: clip;
}

.site-header,
.stats-strip,
.section,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(16, 19, 22, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
}

.brand-mark img {
  display: block;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(102, 231, 196, 0.2);
  border-radius: 8px;
  background: var(--hero);
  box-shadow: 0 12px 30px rgba(16, 19, 22, 0.16);
}

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
}

.site-menu {
  display: contents;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  touch-action: manipulation;
}

.nav-toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover {
  color: var(--mint-strong);
}

.header-tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.lang-select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.theme-select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.header-cta {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
  font-size: 14px;
}

.button {
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
}

.button.primary {
  color: #07120f;
  background: var(--mint);
}

.button.secondary {
  color: inherit;
  border-color: currentColor;
  background: transparent;
}

.header-cta:hover,
.button:hover {
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: 54px;
  align-items: center;
  margin-top: 22px;
  padding: 78px max(16px, calc((100vw - 1180px) / 2)) 66px;
  color: var(--hero-fg);
  background: var(--hero-bg);
  border-top: 1px solid var(--hero-line);
  border-bottom: 1px solid var(--hero-line);
}

.hero-copy,
.hero-console {
  min-width: 0;
  animation: slide-up 620ms ease both;
}

.hero-console {
  animation-delay: 90ms;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0;
}

h1 {
  max-width: 14ch;
  font-size: 62px;
  line-height: 1.02;
}

h2 {
  max-width: 850px;
  font-size: 43px;
  line-height: 1.08;
}

h3 {
  font-size: 22px;
  line-height: 1.18;
}

.hero-tagline,
.hero-text,
.feature-card p,
.channel-card p,
.workflow-card p,
.case-card p,
.cta-text,
.status-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.74;
}

.hero-text {
  max-width: 650px;
  margin-top: 16px;
  color: var(--hero-copy);
  font-size: 18px;
}

.hero-tagline {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--hero-fg);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
}

.hero-actions,
.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 32px;
}

.access-note {
  margin: 12px 0 0;
  color: var(--hero-copy);
  font-size: 14px;
  font-weight: 700;
}

.command-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 30px;
  color: var(--hero-copy);
}

.command-row span {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding-right: 18px;
  margin-right: 18px;
  font-size: 14px;
  font-weight: 700;
}

.command-row span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 0;
  width: 1px;
  height: 14px;
  background: var(--hero-line);
}

.status-note {
  max-width: 690px;
  margin-top: 18px;
  color: var(--hero-muted);
  font-size: 14px;
}

.console-window {
  position: relative;
  padding: 18px;
  border: 1px solid var(--hero-line);
  border-radius: 8px;
  background: var(--console-bg);
  box-shadow: var(--console-shadow);
}

.console-window::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(102, 231, 196, 0.08);
}

.kian-emblem {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: center;
  padding: 8px 8px 18px;
  border-bottom: 1px solid var(--hero-line);
}

.kian-emblem img {
  display: block;
  width: 92px;
  height: 92px;
  border-radius: 8px;
  background: #0c1012;
  box-shadow: 0 0 40px rgba(102, 231, 196, 0.14);
}

.kian-emblem strong {
  display: block;
  color: var(--hero-fg);
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
}

.kian-emblem span {
  display: block;
  margin-top: 8px;
  color: var(--hero-muted);
  font-size: 14px;
  font-weight: 700;
}

.console-body {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.chat-bubble {
  padding: 14px 15px;
  border-radius: 8px;
  line-height: 1.55;
  color: var(--hero-fg);
}

.bubble-user {
  background: var(--bubble-user-bg);
  border: 1px solid rgba(102, 231, 196, 0.2);
}

.bubble-ai {
  background: var(--bubble-ai-bg);
  border: 1px solid var(--hero-line);
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mini-panel {
  min-height: 116px;
  padding: 15px;
  border: 1px solid var(--hero-line);
  border-radius: 8px;
  background: var(--console-panel-bg);
}

.mini-panel strong {
  display: block;
  color: var(--panel-accent);
  font-family: var(--font-display);
  font-size: 16px;
}

.mini-panel p {
  margin: 10px 0 0;
  color: var(--hero-copy);
  line-height: 1.58;
  font-size: 14px;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--stats-bg);
}

.stats-strip div {
  min-height: 132px;
  padding: 28px 24px;
  border-left: 1px solid var(--line);
}

.stats-strip div:first-child {
  border-left: 0;
}

.stats-strip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
}

.stats-strip span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.58;
}

.section {
  padding-top: 88px;
}

.section-heading {
  display: grid;
  gap: 14px;
  margin-bottom: 30px;
}

.eyebrow {
  margin: 0;
  color: var(--mint-strong);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.capability-grid,
.channel-grid,
.qioa-grid,
.workflow-grid,
.case-grid {
  display: grid;
  gap: 14px;
}

.capability-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.channel-grid,
.workflow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.qioa-panel {
  display: grid;
  gap: 24px;
  padding: 30px;
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  color: var(--panel-fg);
  background: var(--panel-bg);
  box-shadow: var(--shadow);
}

.qioa-panel .section-heading {
  margin-bottom: 0;
}

.qioa-panel .eyebrow {
  color: var(--panel-accent);
}

.qioa-lead {
  max-width: 900px;
  margin: 0;
  color: var(--panel-copy);
  font-size: 18px;
  line-height: 1.78;
}

.qioa-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--panel-line);
  padding-top: 20px;
}

.qioa-item {
  padding-right: 22px;
  border-right: 1px solid var(--panel-line);
}

.qioa-item:last-child {
  border-right: 0;
  padding-right: 0;
}

.qioa-item p {
  margin: 12px 0 0;
  color: var(--panel-copy);
  line-height: 1.68;
}

.feature-card,
.channel-card,
.workflow-card,
.case-card {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.feature-card p,
.channel-card p,
.workflow-card p,
.case-card p {
  margin-top: 14px;
}

.feature-card-dark {
  color: #f5fbf8;
  background: linear-gradient(180deg, #121719, #1c2426);
}

.feature-card-dark p {
  color: rgba(245, 251, 248, 0.72);
}

.feature-card-mint {
  background:
    linear-gradient(135deg, rgba(102, 231, 196, 0.18), rgba(237, 192, 95, 0.12)),
    var(--mint-card-bg);
}

.channel-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: start;
}

.channel-badge {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 900;
}

.badge-wa {
  background: rgba(37, 211, 102, 0.15);
  color: #128c4a;
}

.badge-qq {
  background: rgba(18, 183, 245, 0.15);
  color: #0f7aa6;
}

.badge-wecom {
  background: rgba(0, 200, 83, 0.15);
  color: #0d8f48;
}

.badge-web {
  background: rgba(140, 141, 245, 0.16);
  color: #4548bd;
}

.workflow-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--workflow-step-bg);
  color: var(--panel-accent);
  font-family: var(--font-display);
  font-weight: 900;
}

.workflow-card h3 {
  margin-top: 18px;
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 30px;
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  color: var(--panel-fg);
  background: var(--panel-bg);
  box-shadow: var(--shadow);
}

.cta-panel .cta-text {
  max-width: 760px;
  margin-top: 16px;
  color: var(--panel-copy);
}

.cta-panel .button.secondary {
  color: var(--panel-fg);
  border-color: currentColor;
}

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 54px 0 28px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: inline-flex;
  gap: 16px;
}

.footer-links a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--mint-strong);
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .hero,
  .stats-strip,
  .capability-grid,
  .channel-grid,
  .qioa-grid,
  .workflow-grid,
  .case-grid,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .stats-strip div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .stats-strip div:first-child {
    border-top: 0;
  }

  .qioa-item {
    padding-right: 0;
    border-right: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .qioa-item:first-child {
    border-top: 0;
  }

  h1 {
    max-width: 13ch;
    font-size: 58px;
  }

  h2 {
    font-size: 38px;
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: center;
    flex-wrap: wrap;
  }

  .brand {
    flex: 1 1 auto;
  }

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

  .site-header.js-nav-ready .site-menu {
    display: none;
    width: 100%;
  }

  .site-header.js-nav-ready[data-nav-open="true"] .site-menu {
    display: grid;
    gap: 14px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }

  .site-nav a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
  }

  .header-tools {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .site-header,
  .stats-strip,
  .section,
  .site-footer {
    width: min(100% - 22px, 1180px);
  }

  .site-header {
    top: 10px;
  }

  .brand-mark,
  .brand-mark img {
    width: 44px;
    height: 44px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    margin-top: 16px;
    padding: 54px 14px 42px;
  }

  h1 {
    font-size: 43px;
  }

  h2 {
    font-size: 31px;
  }

  h3 {
    font-size: 20px;
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-actions .button,
  .cta-actions .button {
    width: 100%;
  }

  .command-row span {
    min-height: 34px;
    padding-right: 12px;
    margin-right: 12px;
  }

  .kian-emblem {
    grid-template-columns: 72px 1fr;
  }

  .kian-emblem img {
    width: 72px;
    height: 72px;
  }

  .kian-emblem strong {
    font-size: 30px;
  }

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

  .feature-card,
  .channel-card,
  .qioa-item,
  .workflow-card,
  .case-card {
    min-height: 0;
    padding: 20px;
  }

  .qioa-panel {
    padding: 22px;
  }

  .qioa-grid {
    padding-top: 8px;
  }

  .channel-card {
    grid-template-columns: 48px 1fr;
  }

  .channel-badge {
    width: 48px;
    height: 48px;
  }

  .cta-panel {
    padding: 22px;
  }

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

@media (max-width: 420px) {
  .header-tools {
    display: grid;
    grid-template-columns: 1fr;
  }

  .lang-select,
  .theme-select,
  .header-cta {
    width: 100%;
  }

  h1 {
    font-size: 40px;
  }

  .hero-tagline {
    font-size: 20px;
  }
}
