*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  background-color: var(--bg-canvas);
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2px solid var(--brand-navy);
  outline-offset: 2px;
}

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

section[id] {
  scroll-margin-top: 76px;
}

/* ==========================================================================
   Sticky Header & Quick Switcher
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  transition: background-color 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(251, 249, 245, 0.88);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border-subtle);
}

.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 30px;
  width: auto;
  display: block;
  object-fit: contain;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.header-nav a {
  padding: 4px 0;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.header-nav a:hover {
  color: var(--brand-navy);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-pill {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.lang-pill:hover {
  background: #FFFFFF;
  color: var(--text-primary);
  border-color: var(--accent-gold);
}

html[lang="zh-CN"] .lang-pill .lang-zh,
html[lang="en"] .lang-pill .lang-en {
  color: var(--brand-navy);
  font-weight: 700;
}

.nav-right {
  position: relative;
}

.nav-cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(28, 32, 28, 0.13);
  background: rgba(255, 254, 250, 0.86);
  color: #262C29;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(132, 112, 76, 0.08);
  transition: transform 0.2s var(--ease-out), border-color 0.2s ease, background-color 0.2s ease;
}

.nav-cta-pill:hover {
  background: #FFFFFF;
  border-color: rgba(158, 123, 66, 0.42);
  transform: translateY(-1px);
}

.nav-cta-pill svg {
  transition: transform 0.22s var(--ease-out);
}

.nav-cta-pill[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.nav-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(264px, calc(100vw - 32px));
  max-height: min(74vh, 440px);
  overflow-y: auto;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 254, 250, 0.97);
  backdrop-filter: blur(22px) saturate(145%);
  border: 1px solid var(--border-strong);
  box-shadow: 0 18px 46px rgba(24, 28, 25, 0.14);
  transform-origin: top right;
  animation: popoverIn 0.18s var(--ease-out);
}

.nav-popover[hidden] { display: none; }

@keyframes popoverIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.popover-list { display: flex; flex-direction: column; gap: 2px; }
.popover-row { border-radius: 10px; transition: background-color 0.16s ease; }
.popover-row:hover { background: rgba(24, 28, 25, 0.045); }
.popover-row-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-right: 6px;
}
.popover-row-split .popover-item { flex: 1; min-width: 0; padding-right: 4px; }
.popover-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
}
.popover-item-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.popover-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.popover-item-title {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.popover-arrow { color: var(--text-muted); flex-shrink: 0; opacity: 0.72; }
.popover-row:hover .popover-arrow { color: var(--accent-gold); opacity: 1; }
.popover-mini-group { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.popover-mini-chip {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: rgba(158, 123, 66, 0.11);
  border: 1px solid rgba(158, 123, 66, 0.24);
  color: var(--accent-gold);
}
.popover-sep { height: 1px; margin: 4px 8px; background: var(--border-subtle); }
.popover-dir-link {
  width: 100%;
  padding: 7px 10px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.popover-dir-link:hover { background: rgba(24, 28, 25, 0.045); color: var(--text-primary); }

.cmd-esc {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(24, 28, 25, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.mob-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.84);
  align-items: center;
  justify-content: center;
}

.mob-drawer {
  display: none;
  background: rgba(251, 249, 245, 0.96);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-strong);
  padding: 10px 20px 14px;
}

.mob-drawer[hidden] { display: none !important; }

.mob-drawer a {
  display: block;
  padding: 9px 4px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
}
.mob-drawer a:last-child { border-bottom: 0; }

/* ==========================================================================
   Hero Section (Sunlit Botanical Tree + Tyndall Sunbeams + Prism NEWAsia)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px 24px 108px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(ellipse 68% 58% at 96% -4%, rgba(255, 224, 152, 0.36), rgba(255, 244, 214, 0.14) 55%, transparent 80%),
    linear-gradient(180deg, var(--bg-canvas) 0%, var(--bg-void) 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.tree-canvas,
.atmosphere-canvas,
.film-grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.tree-canvas { z-index: 1; }
.atmosphere-canvas { z-index: 2; }
.film-grain {
  z-index: 3;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

.hero-veil {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  width: min(820px, 94vw);
  height: min(530px, 70vh);
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(251, 249, 245, 0.62) 0%,
    rgba(251, 249, 245, 0.30) 54%,
    rgba(251, 249, 245, 0) 78%
  );
  pointer-events: none;
  z-index: 4;
}

.hero-inner {
  position: relative;
  z-index: 5;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border-subtle);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.hero-wordmark {
  display: inline-block;
  margin-bottom: 10px;
  padding-inline: 0.14em;
  font-family: "Plus Jakarta Sans Local", sans-serif;
  font-size: clamp(2.15rem, 3.6vw, 3.1rem);
  font-weight: 800;
  font-style: italic;
  line-height: 1.08;
  letter-spacing: -0.025em;
  user-select: none;
  background: linear-gradient(
    108deg,
    #1E3A8A 0%,
    #2563EB 18%,
    #4F46E5 36%,
    #0284C7 54%,
    #0EA5E9 70%,
    #0D9488 86%,
    #2563EB 100%
  );
  background-size: 220% 220%;
  background-position: var(--sun-pos, 50%) 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 20px rgba(37, 99, 235, 0.14));
  animation: heroReveal 0.6s var(--ease-out) both, prismFlow 9s ease-in-out infinite alternate;
}

@keyframes prismFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 4.5vw, 3.85rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: 0.01em;
  color: #3C4248;
  background: linear-gradient(
    225deg,
    #7D858E 0%,
    #5F6770 22%,
    #9EA6AE 38%,
    #4F565E 56%,
    #2E3439 82%,
    #1E2327 100%
  );
  background-size: 240% 240%;
  background-position: var(--sun-pos, 50%) var(--sun-pos-y, 50%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heroReveal 0.65s var(--ease-out) both;
}

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
  margin: 18px 0 0;
  max-width: 600px;
  font-size: clamp(0.88rem, 1.05vw, 0.98rem);
  line-height: 1.78;
  color: rgba(38, 43, 40, 0.78);
  animation: heroReveal 0.75s var(--ease-out) 0.08s both;
}

.hero-signature-wrap {
  margin: 18px 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hero-signature {
  font-family: var(--font-script);
  font-size: clamp(1.35rem, 2.8vw, 2.25rem);
  color: #9A7438;
  line-height: 1.18;
}

.signature-stroke {
  width: min(280px, 64vw);
  height: 15px;
  overflow: visible;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.22s var(--ease-out), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-pill-primary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(246, 242, 234, 0.9) 100%);
  color: #1F2422;
  border: 1px solid rgba(158, 123, 66, 0.34);
  box-shadow: 0 10px 26px rgba(132, 112, 76, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.btn-pill-primary:hover {
  background: #FFFFFF;
  border-color: rgba(158, 123, 66, 0.54);
  transform: translateY(-2px);
}

.btn-pill-secondary {
  background: rgba(255, 255, 255, 0.56);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px);
}

.btn-pill-secondary:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.trust-ribbon {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-subtle);
  padding: 18px 0;
}

.hero-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.trust-item strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-navy);
}

.trust-item span {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.hero-watermark {
  position: absolute;
  left: 50%;
  bottom: -0.06em;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  user-select: none;
  font-family: "Plus Jakarta Sans Local", sans-serif;
  font-size: clamp(3.8rem, 17.5vw, 17rem);
  font-weight: 800;
  font-style: italic;
  line-height: 0.85;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: rgba(22, 26, 23, 0.065);
  -webkit-mask-image: linear-gradient(to bottom, rgba(22, 26, 23, 0.95) 0%, rgba(22, 26, 23, 0.22) 68%, transparent 100%);
  mask-image: linear-gradient(to bottom, rgba(22, 26, 23, 0.95) 0%, rgba(22, 26, 23, 0.22) 68%, transparent 100%);
}

/* ==========================================================================
   Editorial Architectural Bands & Section Headers
   ========================================================================== */
.band {
  padding: 72px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.band-surface { background: #FFFFFF; }
.band-canvas { background: var(--bg-canvas); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-emerald);
  margin-bottom: 6px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2.05rem);
  font-weight: 650;
  line-height: 1.28;
  color: var(--text-primary);
  max-width: 720px;
}

.section-lead {
  margin: 0;
  max-width: 420px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   Section 1: Role-Based Solutions
   ========================================================================== */
.role-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.role-tab-btn {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-canvas);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.18s ease;
}

.role-tab-btn:hover {
  border-color: var(--brand-navy);
  color: var(--brand-navy);
}

.role-tab-btn.is-active {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  color: #FFFFFF;
  font-weight: 600;
}

.role-panel {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-canvas);
  padding: 28px 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.role-headline {
  margin: 6px 0 10px;
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  font-weight: 650;
  color: var(--text-primary);
  line-height: 1.35;
}

.role-desc {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.68;
}

.role-pain-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.role-pain-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--text-primary);
}

.role-pain-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--brand-emerald);
  font-weight: 700;
}

.role-side-box {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.role-side-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.role-chip-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.role-plat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-canvas);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-navy);
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.role-plat-link:hover {
  border-color: var(--brand-navy);
  transform: translateX(2px);
}

/* ==========================================================================
   Section 2: Platforms & MCP Spotlight
   ========================================================================== */
.filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: #FFFFFF;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.filter-pill.is-active {
  background: rgba(16, 42, 86, 0.09);
  border-color: var(--brand-navy);
  color: var(--brand-navy);
  font-weight: 600;
}

.mcp-spotlight {
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--brand-emerald);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.mcp-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.mcp-badge-live {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(27, 90, 67, 0.11);
  color: var(--brand-emerald);
}

.mcp-badge-sub {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
}

.mcp-spotlight-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 650;
  color: var(--text-primary);
}

.mcp-spotlight-desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.mcp-spotlight-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mcp-mini-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
}

.mcp-mini-stats strong {
  display: block;
  font-size: 18px;
  color: var(--brand-navy);
  line-height: 1.15;
}

.mcp-mini-stats span {
  font-size: 11px;
  color: var(--text-muted);
}

.mcp-spotlight-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.platform-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease, transform 0.2s var(--ease-out), box-shadow 0.2s ease;
}

.platform-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(24, 28, 25, 0.06);
}

.plat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.plat-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 28, 25, 0.04);
  border: 1px solid color-mix(in srgb, var(--item-accent, #9E7B42) 34%, rgba(24, 28, 25, 0.08));
  color: var(--item-accent, var(--accent-gold));
}

.plat-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--bg-wash);
  color: var(--text-secondary);
}

.plat-title {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  color: var(--text-primary);
  line-height: 1.38;
}

.plat-domain {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
}

.plat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-emerald);
}

.plat-summary {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.62;
}

.plat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.plat-chip {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.plat-actions {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.plat-sublinks {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.plat-sublink {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(158, 123, 66, 0.1);
  border: 1px solid rgba(158, 123, 66, 0.28);
  color: var(--accent-gold);
}

.plat-open-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-navy);
}

.plat-open-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Section 3: Professional Assurance & Advisory Services
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.service-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.service-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-gold);
}

.service-title {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  color: var(--text-primary);
}

.service-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.service-tag {
  font-size: 11.5px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  color: var(--brand-emerald);
  font-weight: 600;
}

.service-summary {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.service-links-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 6px;
}

.cls-chip-link {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 8px;
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  color: var(--brand-navy);
}

.cls-chip-link:hover {
  border-color: var(--brand-navy);
}

/* ==========================================================================
   Section 4: Capability Matrix (Responsive Table Guide Compliant)
   ========================================================================== */
.table-wrapper {
  overflow: auto;
  max-inline-size: 100%;
  max-block-size: min(640px, 82vh);
  container-type: inline-size;
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
}

.matrix-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
}

.matrix-table caption {
  text-align: left;
  padding: 14px 18px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.matrix-table thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
}

.matrix-table thead th {
  background: #F4F2EC;
  color: var(--text-primary);
  font-weight: 650;
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}

.matrix-table tbody th,
.matrix-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
  line-height: 1.55;
}

.matrix-table tbody th {
  position: sticky;
  inset-inline-start: 0;
  z-index: 1;
  background: #FFFFFF;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 220px;
  border-right: 1px solid var(--border-subtle);
}

.matrix-table tbody tr:last-child th,
.matrix-table tbody tr:last-child td {
  border-bottom: 0;
}

@container (width < 680px) {
  .table-wrapper {
    max-block-size: none;
    border: 0;
    background: transparent;
  }
  .matrix-table,
  .matrix-table thead,
  .matrix-table tbody,
  .matrix-table tr,
  .matrix-table th,
  .matrix-table td {
    display: block;
    width: 100%;
  }
  .matrix-table thead {
    display: none;
  }
  .matrix-table tr {
    margin-block-end: 14px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: #FFFFFF;
    overflow: hidden;
  }
  .matrix-table tbody th {
    position: sticky;
    inset-block-start: 0;
    z-index: 2;
    background: #F4F2EC;
    border-right: 0;
    border-bottom: 1px solid var(--border-subtle);
    min-width: 0;
  }
  .matrix-table tbody td {
    padding: 10px 14px;
  }
  .matrix-table tbody td:nth-child(2)::before {
    content: var(--label-2) "：";
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 2px;
  }
  .matrix-table tbody td:nth-child(3)::before {
    content: var(--label-3) "：";
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--brand-emerald);
    margin-bottom: 2px;
  }
  .matrix-table tbody td:nth-child(4)::before {
    content: var(--label-4) "：";
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--brand-navy);
    margin-bottom: 2px;
  }
}

/* ==========================================================================
   Section 5: About & Milestones
   ========================================================================== */
.about-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 36px;
  align-items: start;
}

.about-p {
  margin: 0 0 14px;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.about-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.milestones-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.milestone-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-gold);
  border-radius: 12px;
  padding: 16px 20px;
}

.milestone-period {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 4px;
}

.milestone-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 650;
  color: var(--text-primary);
}

.milestone-desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Section 6: Contact & Forms (Validate-Input-After-Interaction Compliant)
   ========================================================================== */
.contact-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.contact-side-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-card,
.hq-card {
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 24px 26px;
}

.contact-card-title {
  margin: 4px 0 8px;
  font-size: 19px;
  font-weight: 650;
  color: var(--text-primary);
}

.contact-card-sub {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.clean-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.req-mark { color: var(--accent-urgent); }

.field-hint {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.clean-form input,
.clean-form select,
.clean-form textarea {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-size: 14px;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.clean-form input:focus,
.clean-form select:focus,
.clean-form textarea:focus {
  background: #FFFFFF;
  border-color: var(--brand-navy);
  outline: none;
}

.clean-form input:is(:user-invalid, .user-invalid-fallback),
.clean-form select:is(:user-invalid, .user-invalid-fallback),
.clean-form textarea:is(:user-invalid, .user-invalid-fallback) {
  border-color: var(--accent-urgent);
  background-color: #FDF3F2;
}

.clean-form input:is(:user-invalid, .user-invalid-fallback) + .field-error,
.clean-form select:is(:user-invalid, .user-invalid-fallback) + .field-error,
.clean-form textarea:is(:user-invalid, .user-invalid-fallback) + .field-error {
  display: block;
}

.clean-form input:user-valid,
.clean-form select:user-valid {
  border-color: var(--brand-emerald);
}

.field-error {
  display: none;
  font-size: 12px;
  color: var(--accent-urgent);
  margin-top: 4px;
}

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.form-note {
  font-size: 12px;
  color: var(--text-muted);
}

.form-status {
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 13px;
  background: var(--bg-canvas);
  border-left: 3px solid var(--brand-emerald);
  color: var(--text-primary);
}

.form-status.is-err {
  border-left-color: var(--accent-urgent);
  color: var(--accent-urgent);
}

.hq-name {
  margin: 4px 0 12px;
  font-size: 16px;
  font-weight: 650;
  color: var(--text-primary);
}

.hq-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hq-list > div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 8px;
  font-size: 13px;
}

.hq-list dt {
  color: var(--text-muted);
  font-weight: 600;
}

.hq-list dd {
  margin: 0;
  color: var(--text-primary);
}

.hq-list a {
  color: var(--brand-navy);
  font-weight: 600;
}

/* Shared Buttons */
.btn-solid-navy,
.btn-solid-emerald,
.btn-outline-subtle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.18s var(--ease-out), opacity 0.18s ease, border-color 0.18s ease;
}

.btn-solid-navy {
  background: var(--brand-navy);
  color: #FFFFFF;
  border: 1px solid var(--brand-navy);
}

.btn-solid-emerald {
  background: var(--brand-emerald);
  color: #FFFFFF;
  border: 1px solid var(--brand-emerald);
}

.btn-outline-subtle {
  background: #FFFFFF;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-solid-navy:hover,
.btn-solid-emerald:hover,
.btn-outline-subtle:hover {
  transform: translateY(-1px);
  border-color: var(--brand-navy);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #F4F1EA;
  padding: 44px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-logo {
  height: 26px;
  width: auto;
  margin-bottom: 10px;
}

.footer-tagline {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 280px;
}

.site-footer h4 {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  color: var(--text-secondary);
}

.site-footer a:hover {
  color: var(--brand-navy);
}

.footer-bottom {
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   Native <dialog> Platform Directory Modal (Modern Web Guidance Compliant)
   ========================================================================== */
dialog.dir-modal {
  border: 0;
  padding: 0;
  background: transparent;
  width: min(700px, calc(100vw - 24px));
  max-width: 700px;
  max-height: min(86vh, 740px);
  margin: auto;
  overflow: visible;
}

dialog.dir-modal:modal {
  overscroll-behavior: contain;
}

dialog.dir-modal::backdrop {
  background: rgba(23, 26, 24, 0.30);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.dir-dialog {
  width: 100%;
  max-height: min(86vh, 740px);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: rgba(255, 254, 250, 0.98);
  border: 1px solid var(--border-strong);
  box-shadow: 0 32px 84px rgba(24, 28, 25, 0.22);
  overflow: hidden;
}

.dir-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.dir-head-title {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
  color: var(--text-primary);
}

.dir-head-sub { font-size: 12px; color: var(--text-muted); }

.dir-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(24, 28, 25, 0.04);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dir-close-btn:hover { background: rgba(24, 28, 25, 0.1); color: var(--text-primary); }

.dir-search-row {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.dir-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 14.5px;
  outline: none;
}

.dir-filter-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.dir-filter-pill {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: transparent;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.dir-filter-pill.is-active {
  background: rgba(16, 42, 86, 0.09);
  color: var(--brand-navy);
  border-color: var(--brand-navy);
  font-weight: 600;
}

.dir-results {
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dir-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
}

.dir-row.is-selected,
.dir-row:hover {
  background: rgba(24, 28, 25, 0.04);
  border-color: var(--border-subtle);
}

.dir-row-main { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 12px; }
.dir-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 28, 25, 0.04);
  border: 1px solid color-mix(in srgb, var(--item-accent, #9E7B42) 34%, rgba(24, 28, 25, 0.08));
  color: var(--item-accent, var(--accent-gold));
}
.dir-row-body { min-width: 0; flex: 1; }
.dir-row-title-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dir-row-title { font-size: 14.5px; font-weight: 600; color: var(--text-primary); }
.dir-row-tag { font-size: 11px; padding: 2px 8px; border-radius: var(--radius-pill); background: rgba(24, 28, 25, 0.05); color: var(--text-secondary); }
.dir-row-domain { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); margin: 2px 0 4px; }
.dir-domain-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brand-emerald); }
.dir-row-desc { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--text-secondary); }
.dir-sublinks { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.dir-sublink {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(158, 123, 66, 0.1);
  border: 1px solid rgba(158, 123, 66, 0.28);
  color: var(--accent-gold);
}
.dir-row-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.dir-copy-btn {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: #FFFFFF;
  font-size: 11.5px;
  color: var(--text-secondary);
}
.dir-go-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-navy);
}
.dir-empty { padding: 28px 14px; text-align: center; font-size: 13.5px; color: var(--text-muted); }
.dir-footer {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: 11.5px;
  color: var(--text-muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 120;
  background: var(--text-primary);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

/* ==========================================================================
   Scroll Entry Effects (Scroll-Driven View Timeline + Progressive Enhancement)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes section-reveal {
      from {
        opacity: 0.15;
        transform: translateY(18px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .reveal-section {
      animation: section-reveal auto linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 24%;
    }
  }

  .reveal-fallback {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
  }
  .reveal-fallback.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mcp-spotlight,
  .role-panel,
  .about-split,
  .contact-split {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .header-nav { display: none; }
  .mob-menu-btn { display: inline-flex; }
  .mob-drawer { display: block; }
}

@media (max-width: 720px) {
  .container,
  .header-inner { padding-inline: 18px; }
  .band { padding: 48px 0; }
  .hero { padding: 88px 18px 64px; }
  .hero-trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .platform-grid,
  .services-grid,
  .form-row-2,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .mcp-mini-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role-panel { padding: 20px 18px; }
  .mcp-spotlight,
  .contact-card,
  .hq-card { padding: 18px; }
  .clean-form input,
  .clean-form select,
  .clean-form textarea,
  .dir-input { font-size: 16px; }
}
