/* CrossPilot official site — cream / deep-green / lime palette */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
:root {
  --ink: #0F3322;        /* deep green */
  --ink-2: #0B2A1B;      /* darker */
  --lime: #A4E836;
  --lime-deep: #8FCC2E;
  --cream: #F6F3E9;
  --paper: #FFFFFF;
  --muted: #5F7264;
  --soft: #93A094;
  --line: #E9E5D7;
}
section { scroll-margin-top: 84px; }
a { text-decoration: none; color: inherit; }
.ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-xs { width: 11px; height: 11px; }
.ic-play { width: 26px; height: 26px; stroke-width: 1.7; }
.ic-step { width: 22px; height: 22px; color: var(--lime-deep); }
.ic-cap { width: 26px; height: 26px; color: var(--lime); stroke-width: 1.8; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  border-radius: 12px; font-weight: 700; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-dark { background: var(--ink); color: #fff; padding: 14px 24px; font-size: 15px; }
.btn-dark:hover { background: var(--ink-2); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(15,51,34,.22); }
.btn-nav { padding: 10px 16px; font-size: 13.5px; border-radius: 11px; }
.btn-disabled { opacity: .55; cursor: default; }
.btn-disabled:hover { transform: none; box-shadow: none; background: var(--ink); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(246,243,233,.92); backdrop-filter: blur(10px); }
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.brand-mark { display: inline-flex; width: 30px; height: 30px; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-mark-sm { width: 20px; height: 20px; }
.nav-links { display: flex; gap: 34px; font-size: 14.5px; font-weight: 600; color: #35493D; }
.nav-links a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  max-width: 1280px; margin: 0 auto; padding: 56px 32px 96px;
  display: grid; grid-template-columns: minmax(0, 1.26fr) minmax(0, 1fr);
  align-items: center; gap: 40px;
}
.hero-copy h1 {
  font-size: clamp(38px, 4.2vw, 56px); line-height: 1.22;
  font-weight: 800; letter-spacing: -.015em;
}
.hl { position: relative; white-space: nowrap; }
.hl-arc { position: absolute; left: 4%; bottom: -10px; width: 88%; height: 13px; }
.hl-dark { position: relative; white-space: nowrap; color: #fff; }
.hl-arc-dark { position: absolute; left: 0; bottom: -9px; width: 100%; height: 12px; }
.hero-sub { margin-top: 22px; font-size: 16.5px; line-height: 1.85; color: var(--muted); max-width: 520px; }

.chip-grid { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 8px; max-width: none; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 6px 10px 6px 7px; font-size: 12.5px; font-weight: 600; color: #22352A;
  letter-spacing: -.01em;
  box-shadow: 0 1px 3px rgba(20,40,30,.06);
}
.pt {
  display: inline-grid; place-items: center; flex: none;
  width: 22px; height: 22px; border-radius: 7px;
  font-style: normal; font-size: 11px; font-weight: 800; color: #fff;
}
.t-taobao { background: #FF5000; }
.t-pdd { background: #E02E24; }
.t-jd { background: #E1251B; }
.t-xy { background: #FFE600; color: #C7342B; }
.t-amz { background: #1C2B3A; }
.t-ebay { background: #E53238; }
.t-shopify { background: #95BF47; }
.t-etsy { background: #F1641E; }
.t-walmart { background: #005FA9; color: #FFC220; }
.t-tiktok { background: #111111; }
.t-shopee { background: #EE4D2D; }
.t-ml { background: #FFE600; color: #2D3277; }

.hero-actions { margin-top: 34px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.watch { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: var(--ink); }
.watch:hover { color: #2A5B3F; }

/* ---------- hero dashboard mockup ---------- */
.hero-visual { position: relative; }
.blob { position: absolute; background: var(--lime); z-index: 0; }
.blob-a { width: 290px; height: 220px; right: -58px; top: -52px; border-radius: 68px; transform: rotate(-16deg); }
.blob-b { width: 220px; height: 160px; left: -52px; bottom: -40px; border-radius: 56px; transform: rotate(14deg); }
.blob-c { width: 150px; height: 110px; left: -90px; bottom: -66px; border-radius: 44px; transform: rotate(-10deg); }

.dashboard {
  position: relative; z-index: 1;
  width: min(660px, 100%); margin-left: auto;
  display: flex; border-radius: 18px; overflow: hidden;
  box-shadow: 0 34px 90px rgba(15,51,34,.20), 0 4px 18px rgba(15,51,34,.08);
}
.d-side { width: 158px; flex: none; background: var(--ink); padding: 18px 12px; display: flex; flex-direction: column; gap: 20px; }
.d-logo { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 13.5px; font-weight: 800; padding: 2px 4px; }
.d-menu { display: flex; flex-direction: column; gap: 3px; }
.d-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 9px;
  font-size: 12px; font-weight: 600; color: #93AA99;
}
.d-item .ic { width: 14px; height: 14px; stroke-width: 2; }
.d-item em { font-style: normal; white-space: nowrap; }
.d-item.active { background: var(--lime); color: var(--ink); }
.d-panel { flex: 1; min-width: 0; background: var(--cream); padding: 16px 18px 18px; }
.d-head { display: flex; align-items: center; justify-content: space-between; }
.d-head > b { font-size: 14.5px; font-weight: 800; }
.d-head-r { display: inline-flex; align-items: center; gap: 12px; }
.d-bell { position: relative; color: #41544A; display: inline-flex; }
.d-bell .ic { width: 17px; height: 17px; }
.d-bell .dot { position: absolute; top: -1px; right: -1px; width: 6px; height: 6px; border-radius: 50%; background: var(--lime-deep); border: 1px solid var(--cream); }
.d-avatar { display: inline-grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #E7E3D3; color: #77745F; }
.d-avatar .ic { width: 15px; height: 15px; }

.d-stats { margin-top: 13px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.d-stat { background: #fff; border-radius: 12px; padding: 12px 13px; min-width: 0; }
.d-stat small { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: #6D7E71; }
.d-stat strong { display: block; margin-top: 8px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.d-stat span { display: block; margin-top: 6px; font-size: 10.5px; font-weight: 700; }
.d-stat .up { color: #4E9B1F; }
.d-stat .up em { font-style: normal; color: var(--soft); font-weight: 500; }
.d-stat .mut { color: var(--soft); font-weight: 500; }

.d-chartcard { margin-top: 12px; background: #fff; border-radius: 12px; padding: 13px 16px 12px; }
.d-chart-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.d-chart-top > b { font-size: 12.5px; font-weight: 800; }
.d-select {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--line); border-radius: 8px; padding: 4px 9px;
  font-size: 11px; font-weight: 600; color: #41544A;
}
.d-big { margin-top: 10px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.d-big .up { font-size: 11.5px; color: #4E9B1F; font-weight: 800; margin-left: 4px; }
.d-big em { font-style: normal; font-size: 11px; color: var(--soft); font-weight: 500; margin-left: 6px; }
.d-spark { display: block; width: 100%; height: 118px; margin-top: 8px; }
.d-xlabels { display: flex; justify-content: space-between; margin-top: 4px; font-size: 10px; color: #B5B0A0; }

/* ---------- matrix + steps ---------- */
.matrix {
  background: #fff; padding: 88px 32px;
}
.matrix-inner { max-width: 1280px; margin: 0 auto; }
.matrix { display: grid; grid-template-columns: 1.08fr 1fr; gap: 0; max-width: none; padding: 88px max(32px, calc((100vw - 1280px)/2)); }
.matrix-right { border-left: 1px solid #E7E3D3; padding-left: 52px; margin-left: 52px; }
.matrix h2 { font-size: clamp(20px, 1.9vw, 26px); font-weight: 800; letter-spacing: -.01em; }

.regions { margin-top: 26px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.region { border: 1px solid var(--line); border-radius: 14px; background: #FDFCF7; padding: 12px 11px; min-width: 0; }
.region header {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 800; color: var(--ink);
  padding-bottom: 9px; margin-bottom: 7px; border-bottom: 1px solid #EFECE0;
}
.region header .ic { width: 15px; height: 15px; stroke-width: 1.8; }
.r-row { display: flex; align-items: center; gap: 7px; padding: 5px 0; font-size: 12px; font-weight: 600; color: #3A4C40; white-space: nowrap; }
.r-row .pt { width: 18px; height: 18px; border-radius: 5px; font-size: 9.5px; }

.steps { margin-top: 26px; display: flex; align-items: stretch; gap: 8px; }
.step { flex: 1; background: var(--cream); border-radius: 14px; padding: 16px 15px; min-width: 0; }
.step-top { display: flex; align-items: center; gap: 10px; }
.num {
  display: inline-grid; place-items: center; flex: none;
  width: 23px; height: 23px; border-radius: 50%;
  background: var(--lime); color: var(--ink);
  font-size: 12px; font-weight: 800;
}
.step h3 { margin: 13px 0 8px; font-size: 15px; font-weight: 800; }
.step p { font-size: 12.5px; line-height: 1.75; color: #66766B; }
.step-arrow { align-self: center; color: var(--ink); display: inline-flex; }
.step-arrow .ic { width: 20px; height: 20px; }

/* ---------- capabilities ---------- */
.caps {
  background: var(--ink); color: #fff;
  padding: 104px max(32px, calc((100vw - 1280px)/2));
  display: grid; grid-template-columns: .85fr 1.5fr; gap: 72px;
  align-items: start;
}
.caps h2 { font-size: clamp(32px, 3.2vw, 44px); line-height: 1.28; font-weight: 800; letter-spacing: -.01em; }
.caps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 52px 44px; }
.cap h3 { margin: 15px 0 9px; font-size: 16.5px; font-weight: 700; }
.cap p { font-size: 13px; line-height: 1.8; color: #9DB4A4; max-width: 300px; }

/* ---------- cta ---------- */
.cta { background: var(--cream); text-align: center; padding: 92px 24px 88px; }
.cta h2 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; letter-spacing: -.01em; }
.cta > p { margin-top: 12px; font-size: 15px; color: var(--muted); }
.cta .btn { margin-top: 30px; }
.cta-note { margin-top: 16px; font-size: 12.5px; color: var(--soft); }

/* ---------- footer ---------- */
.foot { background: var(--ink-2); color: #8FA795; padding: 30px max(32px, calc((100vw - 1280px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.brand-foot { color: #fff; font-size: 15.5px; }
.foot-links { display: flex; gap: 24px; font-size: 13px; }
.foot-links a:hover { color: #C9D8CB; }
.foot-copy { font-size: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 1120px) {
  .hero { grid-template-columns: 1fr; padding-bottom: 72px; }
  .dashboard { margin: 0 auto; }
  .blob-c { display: none; }
  .matrix { grid-template-columns: 1fr; padding-left: 32px; padding-right: 32px; }
  .matrix-right { border-left: 0; padding-left: 0; margin-left: 0; margin-top: 64px; }
  .caps { grid-template-columns: 1fr; gap: 56px; padding-left: 32px; padding-right: 32px; }
  .regions { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .hl { white-space: normal; }
  .hero { padding: 36px 20px 64px; }
  .matrix { padding: 64px 20px; }
  .caps { padding: 72px 20px; }
  .d-side { width: 52px; padding: 16px 9px; }
  .d-logo { font-size: 0; gap: 0; }
  .d-item em { display: none; }
  .d-item { justify-content: center; padding: 9px 0; }
  .steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); align-self: center; }
  .caps-grid { grid-template-columns: 1fr; gap: 36px; }
  .foot { justify-content: center; text-align: center; }
}
