:root {
  --ibm-blue-60: #0f62fe;
  --ibm-blue-70: #0043ce;
  --ibm-gray-100: #161616;
  --ibm-gray-90: #262626;
  --ibm-gray-80: #393939;
  --ibm-gray-70: #525252;
  --ibm-gray-20: #e0e0e0;
  --ibm-gray-10: #f4f4f4;
  --text-primary: #161616;
  --text-inverse: #ffffff;
  --link: var(--ibm-blue-60);
  --radius: 10px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'IBM Plex Sans', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-primary);
  background: #fff;
  line-height: 1.6;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--ibm-gray-20);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-weight: 600; }
.brand-mark { display:inline-grid; place-items:center; width: 34px; height: 34px; border-radius: 8px; background: var(--ibm-blue-60); color: #fff; font-weight: 700; }
.brand-text { font-weight: 600; }

.main-nav ul { display: flex; list-style: none; gap: 18px; margin: 0; padding: 0; align-items: center; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; }
.main-nav ul::-webkit-scrollbar { display: none; }
.nav-link { appearance: none; border: 0; background: transparent; font: inherit; cursor: pointer; padding: 8px 10px; color: inherit; text-decoration: none; border-radius: 6px; }
.nav-link:hover, .nav-link:focus { background: var(--ibm-gray-10); outline: none; }

.has-mega { position: relative; }
.has-mega .mega {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 8px);
  display: none;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 24px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--ibm-gray-20);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  min-width: 840px;
}
.has-mega[aria-expanded="true"] .mega,
.has-mega .nav-link[aria-expanded="true"] + .mega { display: grid; }
.mega h4 { margin: 0 0 8px; font-size: 15px; color: var(--ibm-gray-70); }
.mega ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.mega li { padding: 6px 8px; border-radius: 6px; }
.mega li:hover { background: var(--ibm-gray-10); }

.actions { display: inline-flex; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 14px; border-radius: 8px; border: 1px solid transparent; text-decoration: none; font-weight: 600; cursor: pointer; }
.btn.primary { background: var(--ibm-blue-60); color: #fff; }
.btn.primary:hover { background: var(--ibm-blue-70); }
.btn.secondary { background: #fff; border-color: var(--ibm-gray-20); }
.btn.secondary:hover { background: var(--ibm-gray-10); }
.btn.ghost { background: transparent; border-color: var(--ibm-gray-20); }

.hero {
  background: linear-gradient(180deg, var(--ibm-gray-100), var(--ibm-gray-90));
  color: var(--text-inverse);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; padding: 64px 0; align-items: center; }
.hero-copy h1 { margin: 0 0 14px; font-size: clamp(26px, 3.4vw, 44px); line-height: 1.2; letter-spacing: -0.01em; }
.lede { color: #d0d0d0; max-width: 64ch; }
.ctas { display: flex; gap: 12px; margin-top: 18px; }
.hero-media img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 12px 30px rgba(0,0,0,0.25); }

.section { padding: 60px 0; }
.section.alt { background: var(--ibm-gray-10); }
.section h2 { margin-top: 0; font-size: clamp(22px, 2.6vw, 34px); }
.section-lede { color: var(--ibm-gray-70); }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin-top: 20px; }
.card { border: 1px solid var(--ibm-gray-20); border-radius: var(--radius); overflow: hidden; background: #fff; }
.card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.card h3 { margin: 12px 12px 6px; font-size: 18px; }
.card p { margin: 0 12px 16px; color: var(--ibm-gray-70); }

.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center; }
.bullets { margin: 0; padding-left: 18px; }
.image-stack img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 8px 22px rgba(0,0,0,0.15); }

.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.case { padding: 16px; border: 1px solid var(--ibm-gray-20); border-radius: var(--radius); background: #fff; }
.case h3 { margin-top: 0; font-size: 18px; }
.case p { margin-bottom: 0; color: var(--ibm-gray-70); }

.contact-simple { text-align: center; max-width: 600px; margin: 0 auto; }
.contact-list { margin: 20px 0 0; padding-left: 0; list-style: none; }
.contact-list li { margin: 8px 0; font-size: 16px; }
.contact-list a { color: var(--ibm-blue-60); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.site-footer { border-top: 1px solid var(--ibm-gray-20); background: #fff; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; }
.footer-inner .small { color: var(--ibm-gray-70); }
.divider { margin: 0 10px; color: var(--ibm-gray-20); }

/* Language visibility */
html[data-lang="zh"] .en { display: none; }
html[data-lang="en"] .zh { display: none; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .two-col, .contact { grid-template-columns: 1fr; }
  .has-mega .mega { grid-template-columns: repeat(3, minmax(0,1fr)); min-width: unset; }
}
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; gap: 8px; }
  .brand-text.en { display: none; }
  .main-nav { order: 2; width: 100%; }
  .actions { order: 3; width: 100%; justify-content: flex-start; }
  .main-nav ul { gap: 8px; padding-bottom: 6px; }
  .btn { padding: 9px 12px; }
  .hero-inner { gap: 20px; padding: 36px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .card img { height: 160px; }
  /* Mega menu as overlay */
  .has-mega .mega { position: fixed; left: 4%; right: 4%; top: 64px; min-width: unset; max-height: 60vh; overflow: auto; grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 480px) {
  .container { width: 96%; }
  .header-inner { padding: 12px 0; }
  .brand-mark { width: 28px; height: 28px; font-size: 14px; }
  .brand-text { font-size: 14px; }
  .nav-link { padding: 6px 8px; font-size: 14px; }
  .btn { padding: 8px 10px; border-radius: 7px; font-size: 14px; }
  .hero-inner { padding: 24px 0; gap: 16px; }
  .hero-copy h1 { font-size: 24px; line-height: 1.3; }
  .lede { font-size: 16px; }
  .ctas { flex-direction: column; gap: 8px; }
  .card img { height: 140px; }
  .card h3 { font-size: 16px; }
  .card p { font-size: 14px; }
  .section { padding: 40px 0; }
  .section h2 { font-size: 20px; }
  .case h3 { font-size: 16px; }
  .case p { font-size: 14px; }
  .contact-list li { font-size: 14px; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
  .footer-inner .small { font-size: 12px; }
}

