/* ============ Design Tokens ============ */
:root {
  --primary: #006eff;
  --primary-dark: #0052d9;
  --primary-light: #3388ff;
  --primary-soft: #e8f2ff;
  --accent: #00a4ff;
  --text: #182334;
  --text-muted: #4d5f75;
  --text-light: #73839a;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-dark: #071d3a;
  --border: #dfe8f2;
  --border-soft: #e8eef5;
  --shadow-sm: 0 1px 2px rgba(7, 29, 58, .05);
  --shadow: 0 8px 22px rgba(7, 29, 58, .07);
  --shadow-lg: 0 14px 34px rgba(7, 29, 58, .10);
  --radius: 4px;
  --radius-lg: 6px;
  --max-w: 1200px;
}

/* ============ Reset & Base ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .15s, background .15s, border-color .15s; }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
h1, h2, h3, h4 { line-height: 1.28; color: var(--text); font-weight: 700; letter-spacing: 0; }
h1 { font-size: clamp(2rem, 4.8vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.2rem; }
p { color: var(--text-muted); }

/* ============ Layout ============ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 76px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.section-head .eyebrow, .page-hero .eyebrow, .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2 { margin-bottom: 10px; }
.section-head p { color: var(--text-light); font-size: 1.03rem; }

/* ============ Header / Nav ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 24px;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 34px; }
.nav-menu {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}
.nav-menu a {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  padding: 21px 0;
  white-space: nowrap;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--primary); }
.nav-menu a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--primary);
}
.nav-tool {
  border: 1px solid var(--primary);
  color: var(--primary) !important;
  padding: 7px 12px !important;
  border-radius: var(--radius);
  font-weight: 600 !important;
}
.nav-tool:hover { background: var(--primary-soft); }
.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 16px !important;
  border-radius: var(--radius);
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--primary-dark); }
.nav-cta.active::after, .nav-tool.active::after { display: none; }
.nav-toggle {
  display: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  width: 40px;
  height: 40px;
  padding: 8px;
  color: var(--text);
}
.nav-toggle svg { width: 100%; height: 100%; }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 92px 0 70px;
  background: linear-gradient(110deg, #071d3a 0%, #0b3974 54%, #006eff 100%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: .45;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9fd0ff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}
.hero-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: #9fd0ff;
}
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 .highlight { color: #9fd0ff; }
.hero-sub {
  font-size: 1.08rem;
  color: #dcecff;
  margin-bottom: 30px;
  max-width: 600px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual {
  min-height: 310px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  padding: 22px;
}
.hero-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  height: 100%;
}
.hero-panel {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  padding: 18px;
  min-height: 126px;
}
.hero-panel strong {
  display: block;
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.hero-panel span { color: #b9dcff; font-size: 13px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff !important; }
.btn-primary:hover { background: var(--primary-dark); color: #fff !important; box-shadow: var(--shadow); }
.btn-outline { background: #fff; color: var(--primary) !important; border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-soft); color: var(--primary-dark) !important; }
.btn-light { background: #fff; color: var(--primary-dark) !important; }
.btn-light:hover { background: var(--primary-soft); }

/* ============ Stats Strip ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid var(--border);
  margin-top: -28px;
  position: relative;
  z-index: 2;
}
.stat { padding: 24px 20px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.stat-label { font-size: 14px; color: var(--text-light); margin-top: 8px; }

/* ============ Cards Grid ============ */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .2s, box-shadow .2s;
  min-height: 100%;
}
.card:hover { box-shadow: var(--shadow); border-color: #bfd6f2; }
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 18px;
  font-weight: 800;
}
.card-icon svg { width: 23px; height: 23px; }
.card h3 { margin-bottom: 10px; font-size: 1.12rem; }
.card p { font-size: .95rem; color: var(--text-muted); }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
}
.card-link::after { content: ">"; }

/* ============ Product Card ============ */
.product-card {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.product-card + .product-card { margin-top: 20px; }
.product-card .product-info {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tag, .product-card .tag {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius);
  margin-bottom: 14px;
  letter-spacing: .6px;
}
.product-card h3 { font-size: 1.45rem; margin-bottom: 12px; }
.product-card p { margin-bottom: 18px; }
.product-image {
  background: linear-gradient(135deg, #f4f8fd, #e8f2ff);
  border-left: 1px solid var(--border);
  min-height: 260px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-image img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
}
.product-panel {
  background: linear-gradient(135deg, #f4f8fd, #e8f2ff);
  border-left: 1px solid var(--border);
  min-height: 260px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.product-panel span {
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}
.product-panel strong {
  color: var(--text);
  font-size: 1.35rem;
  margin-bottom: 18px;
}
.product-panel ul {
  display: grid;
  gap: 10px;
}
.product-panel li {
  background: rgba(255,255,255,.74);
  border: 1px solid #cfe2f8;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px;
}
.product-card.reverse { direction: rtl; }
.product-card.reverse > * { direction: ltr; }
.product-card.reverse .product-image { border-left: 0; border-right: 1px solid var(--border); }
.product-card.reverse .product-panel { border-left: 0; border-right: 1px solid var(--border); }

/* ============ Enterprise AI ============ */
.ai-capability-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 20px;
  align-items: stretch;
}
.ai-capability-main {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.ai-capability-main h3 {
  font-size: 1.55rem;
  margin-bottom: 12px;
}
.ai-capability-main p {
  margin-bottom: 22px;
}
.ai-check-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.ai-check-list span {
  position: relative;
  background: var(--primary-soft);
  color: var(--text);
  border: 1px solid #cfe2f8;
  border-radius: var(--radius);
  padding: 12px 12px 12px 28px;
  font-size: 14px;
  font-weight: 600;
}
.ai-check-list span::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 21px;
  width: 6px;
  height: 6px;
  background: var(--primary);
}
.ai-capability-side {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.ai-capability-side div {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.ai-capability-side strong {
  display: block;
  color: var(--primary);
  font-size: 1.45rem;
  line-height: 1;
  margin-bottom: 14px;
}
.ai-capability-side span {
  display: block;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 8px;
}
.ai-capability-side p {
  font-size: 14px;
}

/* ============ Muted Products ============ */
.products-muted {
  padding-top: 58px;
  padding-bottom: 58px;
}
.products-muted .section-head {
  margin-bottom: 28px;
}
.products-muted .section-head h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}
.product-compact-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.product-compact,
.product-compact-more {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  min-height: 148px;
}
.product-compact {
  color: var(--text) !important;
}
.product-compact:hover {
  border-color: #bfd6f2;
  box-shadow: var(--shadow-sm);
}
.product-compact span {
  display: inline-block;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}
.product-compact strong {
  display: block;
  color: var(--text);
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.product-compact p {
  font-size: 14px;
}
.product-compact-more {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ Tech Stack ============ */
.tech-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.tech-list span {
  background: #fff;
  border: 1px solid var(--border);
  padding: 11px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
}

/* ============ Partners ============ */
.partners-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--border); background: #fff; }
.partner-cell {
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 116px;
  text-align: center;
}
.partner-cell:last-child { border-right: 0; }
.partner-name { font-weight: 700; color: var(--text); font-size: 1.04rem; }
.partner-sub { font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* ============ CTA Banner ============ */
.cta-banner {
  background: linear-gradient(110deg, #071d3a 0%, #0b3974 58%, #006eff 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: #dcecff; margin-bottom: 26px; max-width: 620px; margin-left: auto; margin-right: auto; }

/* ============ Page Hero ============ */
.page-hero {
  padding: 70px 0 56px;
  background: linear-gradient(110deg, #f5f8fc 0%, #e8f2ff 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-bottom: 14px; }
.page-hero p { color: var(--text-muted); max-width: 700px; font-size: 1.05rem; }

/* ============ Content Block ============ */
.content { max-width: 900px; margin: 0 auto; }
.content h2 { margin: 32px 0 16px; }
.content h3 { margin: 24px 0 12px; }
.content p { margin-bottom: 14px; }
.content ul { padding-left: 0; margin-bottom: 16px; }
.content ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--text-muted);
}
.content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  background: var(--primary);
}

/* ============ Feature Block ============ */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 54px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-text { order: 2; }
.feature-text h3 { margin-bottom: 12px; font-size: 1.36rem; }
.feature-image {
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f4f8fd, #e8f2ff);
  border: 1px solid var(--border);
  min-height: 280px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-image img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
}
.feature-panel {
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f4f8fd, #e8f2ff);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 280px;
  padding: 30px;
  justify-content: center;
}
.feature-panel-head {
  display: grid;
  gap: 8px;
}
.feature-panel-head span {
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}
.feature-panel-head strong {
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1.3;
}
.feature-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.feature-panel-grid span {
  background: #fff;
  border: 1px solid #cfe2f8;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 12px;
}
.feature-panel p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}
.feature-visual {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f4f8fd, #e8f2ff);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 0 !important;
}

/* ============ Contact Cards ============ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.contact-card .icon-box {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-card h4 { font-size: 1rem; margin-bottom: 6px; }
.contact-card p { font-size: .95rem; color: var(--text-muted); margin: 0; word-break: break-all; }

/* ============ Footer ============ */
.site-footer {
  background: var(--bg-dark);
  color: #9fb1c7;
  padding: 54px 0 24px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { color: #9fb1c7; font-size: .95rem; margin-top: 14px; max-width: 330px; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; font-weight: 600; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #9fb1c7; font-size: .9rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .85rem;
}
.footer-bottom a { color: #9fb1c7; }
.footer-logo-mono { filter: brightness(0) invert(1); opacity: .95; height: 32px; }

/* ============ Responsive ============ */
@media (max-width: 1100px) {
  .nav-menu { gap: 16px; }
  .nav-menu a { font-size: 13px; }
}
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tech-list { grid-template-columns: repeat(3, 1fr); }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-cell:nth-child(2) { border-right: 0; }
  .partner-cell { border-bottom: 1px solid var(--border); }
  .partner-cell:nth-child(n+3) { border-bottom: 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { min-height: 240px; }
  .product-card { grid-template-columns: 1fr; }
  .product-card.reverse { direction: ltr; }
  .product-card .product-image, .product-card.reverse .product-image, .product-card .product-panel, .product-card.reverse .product-panel { border-left: 0; border-right: 0; border-top: 1px solid var(--border); }
  .ai-capability-grid { grid-template-columns: 1fr; }
  .product-compact-list { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; gap: 24px; }
  .feature-row.reverse .feature-text { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .nav {
    min-height: 64px;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 18px;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 12px 0; }
  .nav-menu a.active::after { display: none; }
  .nav-tool, .nav-cta {
    width: 100%;
    justify-content: center;
    text-align: center;
    margin-top: 8px;
  }
  .nav-toggle { display: block; }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .section { padding: 54px 0; }
  .hero { padding: 64px 0 48px; }
  .hero-panel-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: 1fr; }
  .partner-cell, .partner-cell:nth-child(2), .partner-cell:nth-child(n+3) { border-right: 0; border-bottom: 1px solid var(--border); }
  .partner-cell:last-child { border-bottom: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .tech-list { grid-template-columns: repeat(2, 1fr); }
  .ai-check-list, .ai-capability-side, .product-compact-list { grid-template-columns: 1fr; }
  .cta-banner { padding: 36px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============ Utility ============ */
.text-center { text-align: center; }
.mt-4 { margin-top: 32px; }
.fade-in, .fade-in.visible { opacity: 1; transform: none; }
