:root {
  color-scheme: light;
  --brand: #3b63ff;
  --brand-2: #5b5cff;
  --brand-soft: #eef2ff;
  --gradient: linear-gradient(135deg, #3b63ff 0%, #5b5cff 100%);
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e5e9f2;
  --soft: #f6f8fc;
  --radius: 16px;
  --header-h: 72px;
  --container: 1200px;
  --gutter: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .04);
  --shadow-md: 0 2px 4px rgba(15, 23, 42, .04), 0 16px 40px rgba(59, 99, 255, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--ink); letter-spacing: -.01em; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid rgba(59, 99, 255, .35); outline-offset: 3px; border-radius: 8px; }

.container { width: min(var(--container), calc(100% - var(--gutter) * 2)); margin: 0 auto; }
section[id], main[id] { scroll-margin-top: var(--header-h); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; z-index: 30; top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(15, 23, 42, .06); }
.header-inner {
  height: 100%;
  width: min(var(--container), calc(100% - var(--gutter) * 2));
  margin: 0 auto;
  display: flex; align-items: center; gap: 32px;
}
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 48px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; margin: 0 auto; font-size: 15px; font-weight: 500; }
.site-nav a { position: relative; padding: 8px 14px; color: var(--text); border-radius: 999px; transition: color .15s, background .15s; }
.site-nav a:hover { color: var(--brand); }
.site-nav a.active { color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px;
  color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 999px;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: color .15s, border-color .15s;
}
.lang-toggle .icon { width: 16px; height: 16px; }
.lang-toggle:hover { color: var(--brand); border-color: #c7d2fe; }
.nav-cta {
  display: inline-flex; align-items: center; height: 38px; padding: 0 18px;
  color: #fff; background: var(--gradient); border-radius: 999px; font-size: 14px; font-weight: 600;
  box-shadow: 0 6px 16px rgba(59, 99, 255, .28); transition: transform .15s, box-shadow .15s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(59, 99, 255, .34); }
.menu-button { display: none; width: 40px; height: 40px; padding: 11px 10px; color: var(--ink); background: transparent; border: 0; border-radius: 10px; cursor: pointer; }
.menu-button span:not(.sr-only) { display: block; height: 2px; margin: 3px 0; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.site-header.is-open .menu-button span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-header.is-open .menu-button span:nth-child(2) { opacity: 0; }
.site-header.is-open .menu-button span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; white-space: nowrap; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}
.button:hover { transform: translateY(-1px); }
.button.primary { color: #fff; background: var(--gradient); box-shadow: 0 10px 24px rgba(59, 99, 255, .28); }
.button.primary:hover { box-shadow: 0 14px 30px rgba(59, 99, 255, .36); }
.button.secondary { color: var(--ink); background: #fff; border-color: var(--line); }
.button.secondary:hover { border-color: #c7d2fe; color: var(--brand); }
.button.white { color: var(--brand); background: #fff; }
.button.ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.button.ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .6); }

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--header-h) + 56px) 0 72px;
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(91, 92, 255, .12), transparent 70%),
    radial-gradient(40% 50% at 5% 90%, rgba(37, 208, 223, .08), transparent 70%),
    linear-gradient(180deg, #f7f9ff 0%, #eef3fe 100%);
}
.hero-inner { display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; gap: 48px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px;
  color: var(--brand); background: #fff; border: 1px solid #dde4ff; border-radius: 999px;
  font-size: 13px; font-weight: 600;
}
.eyebrow::before { width: 6px; height: 6px; content: ""; background: var(--brand); border-radius: 50%; box-shadow: 0 0 0 4px rgba(59, 99, 255, .15); }
.hero h1 { margin: 22px 0 0; font-size: clamp(40px, 5vw, 60px); line-height: 1.15; font-weight: 700; }
.hero h1 span { display: block; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[lang="en"] .hero h1 { font-size: clamp(36px, 4.2vw, 52px); }
.hero-text { max-width: 520px; margin: 20px 0 0; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 36px; margin-top: 44px; padding-top: 28px; border-top: 1px solid #dfe5f3; }
.stats dt { color: var(--ink); font-size: 28px; font-weight: 700; line-height: 1.1; }
.stats dd { margin-top: 6px; color: var(--muted); font-size: 13px; }
.hero-visual img {
  width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-composite: intersect;
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-soft { background: var(--soft); }
.section-heading { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-heading h2, .split h2 { margin: 0; font-size: 36px; line-height: 1.25; font-weight: 700; }
.section-heading p { margin: 12px 0 0; color: var(--muted); }

.feature-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  color: var(--brand); background: var(--brand-soft); border-radius: 12px; font-style: normal;
}
.feature-icon .icon { width: 22px; height: 22px; }

/* Capabilities */
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.capability-grid article, .coop-grid article, .case-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.capability-grid article:hover, .coop-grid article:hover, .case-card:hover { transform: translateY(-3px); border-color: #d6ddf7; box-shadow: var(--shadow-md); }
.capability-grid article { padding: 28px; }
.capability-grid h3, .coop-grid h3 { margin: 20px 0 8px; font-size: 18px; font-weight: 600; }
.capability-grid p, .coop-grid p, .case-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }

/* Cases */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-card { display: flex; flex-direction: column; overflow: hidden; }
.case-media {
  display: flex; align-items: center; justify-content: center; height: 176px;
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  border-bottom: 1px solid var(--line);
}
.case-media img { width: 168px; height: 139px; object-fit: cover; border-radius: 10px; box-shadow: 0 8px 20px rgba(15, 23, 42, .12); }
.case-body { display: flex; flex: 1; flex-direction: column; padding: 22px 24px 24px; }
.case-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.case-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.case-tags span { padding: 2px 10px; color: var(--brand); background: var(--brand-soft); border-radius: 999px; font-size: 12px; font-weight: 500; }
.case-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 20px; }
.case-price { color: var(--ink); font-size: 14px; font-weight: 600; }
.case-link { display: inline-flex; align-items: center; gap: 4px; color: var(--brand); font-size: 14px; font-weight: 600; white-space: nowrap; }
.case-link .icon { width: 16px; height: 16px; transition: transform .15s; }
.case-link:hover .icon, .case-next:hover .case-link .icon { transform: translateX(3px); }
.case-next {
  align-items: flex-start; justify-content: center; padding: 32px;
  background: linear-gradient(160deg, #fff 0%, #f1f4ff 100%); border-style: dashed; border-color: #c7d2fe;
}
.case-next h3 { margin-top: 20px; }
.case-next .case-link { margin-top: 20px; }

/* Solutions */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.split-intro p { max-width: 420px; margin: 16px 0 28px; color: var(--muted); }
.fit-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fit-list li {
  display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px;
  color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 12px; font-size: 15px; font-weight: 500; line-height: 1.6;
}
.fit-list .icon { width: 22px; height: 22px; padding: 4px; color: #fff; background: var(--gradient); border-radius: 50%; stroke-width: 3; }

/* Work steps */
.work-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.work-steps::before { position: absolute; top: 24px; left: 12.5%; right: 12.5%; height: 2px; content: ""; background: linear-gradient(90deg, #c7d2fe, #ddd6fe); }
.work-steps li { position: relative; text-align: center; }
.work-steps b {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  color: #fff; background: var(--gradient); border: 4px solid var(--soft); border-radius: 50%; box-sizing: content-box;
  font-size: 15px; font-weight: 700;
}
.work-steps h3 { margin: 16px 0 6px; font-size: 18px; font-weight: 600; }
.work-steps p { max-width: 240px; margin: 0 auto; color: var(--muted); font-size: 14px; }

/* Cooperation */
.coop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.coop-grid article { display: flex; flex-direction: column; padding: 28px; }
.coop-grid .case-link { margin-top: auto; padding-top: 20px; }

/* About */
.about { padding-top: 0; }
.about .split { padding-top: 96px; border-top: 1px solid var(--line); align-items: center; }
.about-text p { margin: 0; color: var(--muted); font-size: 16px; }
.about-text p + p { margin-top: 16px; }

/* CTA */
.cta {
  position: relative; overflow: hidden; padding: 88px 0; color: #fff; text-align: center;
  background:
    radial-gradient(50% 80% at 20% 0%, rgba(91, 92, 255, .45), transparent 70%),
    radial-gradient(40% 70% at 90% 100%, rgba(37, 208, 223, .22), transparent 70%),
    #0b1233;
}
.cta-inner { max-width: 720px; }
.cta h2 { margin: 0; color: #fff; font-size: 36px; line-height: 1.3; font-weight: 700; }
.cta p { margin: 14px 0 0; color: rgba(255, 255, 255, .72); }
.email-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; color: #fff; font-size: 20px; font-weight: 600; }
.email-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.cta-actions { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }

/* Footer */
.site-footer { padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-left { display: flex; align-items: center; gap: 16px; }
.footer-brand img { height: 40px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; }
.footer-links a:hover { color: var(--brand); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .site-nav { gap: 0; }
  .site-nav a { padding: 8px 10px; }
  .coop-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  :root { --header-h: 64px; }
  .brand img { height: 42px; }
  .header-inner { gap: 12px; justify-content: space-between; }
  .nav-cta { display: none; }
  .menu-button { display: block; }
  .site-nav {
    position: absolute; top: calc(100% + 8px); left: 12px; right: 12px; margin: 0;
    display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav a { padding: 12px 14px; border-radius: 10px; }

  .hero { padding: calc(var(--header-h) + 40px) 0 56px; }
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-copy { text-align: center; }
  .hero-text { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .stats { justify-content: center; }
  .hero-visual { max-width: 640px; margin: 0 auto; }

  .section { padding: 72px 0; }
  .capability-grid, .case-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split-intro { text-align: center; }
  .split-intro p { margin-left: auto; margin-right: auto; }
  .about .split { padding-top: 72px; text-align: center; }
  .work-steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .work-steps::before { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-left { flex-direction: column; gap: 8px; }
  .footer-links { justify-content: center; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .brand img { height: 38px; }
  .lang-toggle { height: 36px; padding: 0 10px; }
  .hero h1 { font-size: 38px; }
  html[lang="en"] .hero h1 { font-size: 32px; }
  .hero-text { font-size: 16px; }
  .hero-actions .button { flex: 1 1 0; padding: 0 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; margin-top: 36px; }
  .section { padding: 56px 0; }
  .section-heading { margin-bottom: 32px; }
  .section-heading h2, .split h2, .cta h2 { font-size: 28px; }
  .capability-grid, .case-grid, .coop-grid, .fit-list { grid-template-columns: 1fr; }
  .capability-grid { gap: 12px; }
  .capability-grid article { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 20px; }
  .capability-grid h3 { margin: 0 0 4px; align-self: center; }
  .capability-grid p { grid-column: 2; }
  .capability-grid .feature-icon { grid-row: span 2; }
  .work-steps { grid-template-columns: 1fr; row-gap: 28px; }
  .about .split { padding-top: 56px; }
  .cta { padding: 64px 0; }
  .cta-actions { flex-direction: column; }
  .cta-actions .button { width: 100%; }
  .email-link { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
