:root {
  --navy: #0F2A3D;
  --navy-2: #17394F;
  --teal: #0E7C70;
  --teal-light: #5FC4B5;
  --orange: #A9530F;
  --bg: #F5F7F6;
  --bg-alt: #EDF3F1;
  --card: #FCFDFC;
  --mint: #E3EFEC;
  --text: #3E4C59;
  --muted: #5F6B76;
  --line: #DCE3E1;
  --on-dark: #EEF3F1;
  --on-dark-soft: #B9CBD3;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.7; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--teal-light); outline-offset: 2px; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.3; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding-left: 1.2em; }
li + li { margin-top: 6px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(252, 253, 252, 0.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--navy); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--navy) url("favicon.svg") center / cover no-repeat; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--text); white-space: nowrap; font-size: 15px; }
.nav a:hover { background: var(--mint); text-decoration: none; }
.nav a.active { color: var(--teal); font-weight: 600; }

/* hero */
.hero { background: var(--navy); color: var(--on-dark); padding: 88px 0 72px; }
.hero h1 { color: var(--on-dark); font-size: 44px; max-width: 920px; }
.hero .eyebrow { color: var(--teal-light); }
.hero .lead { color: var(--on-dark-soft); font-size: 18px; max-width: 820px; margin-top: 20px; }
.hero-product { padding: 64px 0 56px; }
.hero-product h1 { font-size: 42px; }
.tagline-lg { font-size: 22px; color: var(--teal-light); margin-top: 10px; font-weight: 600; }
.crumb { font-size: 14px; color: var(--on-dark-soft); margin-bottom: 16px; }
.crumb a { color: var(--on-dark-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 16px; }
.btn:hover { text-decoration: none; opacity: 0.92; }
.btn-primary { background: var(--teal); color: #FCFDFC; }
.btn-ghost { border: 1px solid var(--on-dark-soft); color: var(--on-dark); }
.btn-outline { border: 1px solid var(--teal); color: var(--teal); }
.actions-row { display: flex; flex-wrap: wrap; gap: 12px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 40px; }
.stat { background: var(--navy-2); border-radius: 14px; padding: 18px 22px; display: flex; flex-direction: column; }
.stat b { font-size: 32px; color: var(--teal-light); line-height: 1.2; }
.stat span { color: var(--on-dark); font-size: 15px; margin-top: 4px; }
.stat small { color: var(--on-dark-soft); font-size: 13px; margin-top: 2px; }

/* sections */
.section { padding: 72px 0; }
section[id] { scroll-margin-top: 64px; }
.section-alt { background: var(--bg-alt); }
.section h2 { font-size: 32px; margin-bottom: 12px; }
.h2-gap { margin-top: 56px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 2px; color: var(--orange); margin-bottom: 10px; }
.section-lead { color: var(--muted); font-size: 17px; max-width: 860px; margin-bottom: 32px; }
.note-line { color: var(--muted); font-size: 15px; margin-top: 20px; }
.section-note { background: var(--mint); padding: 32px 0; }
.section-note p { color: var(--navy); font-size: 18px; font-weight: 600; }
.back { margin-top: 24px; }

/* matrix bands */
.bands { display: flex; flex-direction: column; gap: 14px; }
.band { display: flex; align-items: center; gap: 20px; background: var(--card); border-radius: 14px; padding: 16px 22px; box-shadow: 0 2px 8px rgba(15, 42, 61, 0.08); }
.band-name { flex: 0 0 120px; font-weight: 700; font-size: 18px; color: var(--teal); }
.band-base { background: var(--navy); }
.band-base .band-name { color: var(--teal-light); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-block; padding: 8px 16px; border-radius: 10px; background: var(--mint); color: var(--navy); font-size: 15px; }
.chip:hover { background: #D3E7E2; text-decoration: none; }
.chip-dark { background: var(--navy-2); color: var(--on-dark); }

/* grids & cards */
.grid { display: grid; gap: 20px; }
.cards { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.products { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-bottom: 36px; }
.three { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.industries { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.industry { background: var(--card); border-radius: 12px; padding: 20px 22px; border-left: 5px solid var(--teal); box-shadow: 0 2px 8px rgba(15, 42, 61, 0.08); }
.industry h3 { font-size: 18px; margin-bottom: 6px; }
.industry p { font-size: 15px; color: var(--text); }
.segment-card { display: flex; flex-direction: column; color: var(--text); padding: 28px 30px; }
a.segment-card:hover { text-decoration: none; box-shadow: 0 8px 20px rgba(15, 42, 61, 0.12); }
.segment-card h3 { font-size: 24px; }
.segment-card .tagline { color: var(--muted); font-size: 16px; margin-bottom: 14px; }
.segment-card ul { flex: 1; font-size: 16px; }
.about { max-width: 880px; margin-top: 12px; }
.about p { font-size: 17px; margin-bottom: 12px; }
.card { background: var(--card); border-top: 5px solid var(--teal); border-radius: 12px; padding: 22px 24px; box-shadow: 0 2px 8px rgba(15, 42, 61, 0.08); }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card ul { color: var(--text); font-size: 15px; }
.card.mini p { font-size: 15px; color: var(--text); }
.layer-title { font-size: 20px; color: var(--teal); margin: 8px 0 16px; }
.product-card { display: flex; flex-direction: column; color: var(--text); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.product-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15, 42, 61, 0.12); }
.product-card .tag { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--orange); letter-spacing: 1px; margin-bottom: 6px; }
.product-card .tagline { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.product-card ul { flex: 1; }
.card-meta { margin-top: 14px; font-size: 14px; color: var(--muted); }
.more { margin-top: 10px; color: var(--teal); font-weight: 600; font-size: 15px; }

/* flow */
.flow { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 14px; }
.flow li + li { margin-top: 0; }
.step { background: var(--card); border-radius: 12px; padding: 18px 18px 20px; border-top: 5px solid var(--teal); box-shadow: 0 2px 8px rgba(15, 42, 61, 0.08); }
.step-no { font-size: 14px; font-weight: 700; color: var(--orange); }
.step h3 { font-size: 17px; margin: 4px 0 6px; }
.step p { font-size: 14px; color: var(--text); line-height: 1.6; }

/* agent split & rules */
.split { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 28px; }
.split .flow { margin-top: 14px; }
.sub { font-size: 19px; }
.rules { grid-template-columns: repeat(3, 1fr); margin-bottom: 28px; }
.rules-gap { margin-top: 24px; }
.rule { background: var(--teal); color: #F3F7F6; border-radius: 14px; padding: 22px 24px; }
.rule h3 { color: #F3F7F6; font-size: 22px; margin-bottom: 8px; }
.rule p { color: #E4F2EF; font-size: 15px; }

/* tables */
.table-wrap { overflow-x: auto; background: var(--card); border-radius: 12px; box-shadow: 0 2px 8px rgba(15, 42, 61, 0.08); }
.table-wrap.narrow { max-width: 760px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { background: var(--navy); color: var(--on-dark); text-align: left; padding: 12px 16px; font-weight: 600; white-space: nowrap; }
td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
tbody tr:nth-child(even) td { background: #F2F6F5; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }

/* footer */
.site-footer { background: var(--navy); color: var(--on-dark-soft); padding: 48px 0 32px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.site-footer h4 { color: var(--on-dark); font-size: 15px; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li + li { margin-top: 4px; }
.site-footer a { color: var(--on-dark-soft); }
.footer-planned { margin-top: 28px; }
.footer-copy { margin-top: 8px; color: #8FA6B1; }

@media (max-width: 900px) {
  .rules, .two { grid-template-columns: 1fr; }
  .four, .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .header-row { height: auto; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 16px 6px; }
  .nav { width: 100%; flex-wrap: wrap; }
  .nav a { padding: 6px 10px; }
  .hero { padding: 48px 0 40px; }
  .hero h1, .hero-product h1 { font-size: 28px; }
  .hero .lead { font-size: 16px; }
  .tagline-lg { font-size: 18px; }
  .section { padding: 48px 0; }
  .section h2 { font-size: 24px; }
  .band { flex-direction: column; align-items: flex-start; gap: 10px; }
  .band-name { flex: none; }
  .cards, .products, .three, .four, .industries { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat b { font-size: 24px; }
  .flow { grid-template-columns: 1fr; }
}
