/* =====================================================================
   词元引力 · TokenGravity —— 深色科技风设计系统
   Layered on top of Bootstrap 5.3. Dark "deep-space gravity" theme.
   ===================================================================== */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* Surfaces */
  --bg-900: #05060f;
  --bg-850: #070815;
  --bg-800: #0a0c1b;
  --bg-750: #0e1124;
  --bg-700: #11142a;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --hairline: rgba(255, 255, 255, .08);
  --hairline-2: rgba(255, 255, 255, .14);

  /* Ink */
  --ink-0: #f5f7ff;
  --ink-1: #c8cce4;
  --ink-2: #9197ba;
  --ink-3: #868cb5;

  /* Accents */
  --violet: #7c5cff;
  --indigo: #4f6bff;
  --cyan: #22d3ee;
  --pink: #c77dff;
  --accent: var(--violet);

  /* Gradients */
  --aurora: linear-gradient(100deg, #7c5cff 0%, #4f6bff 45%, #22d3ee 100%);
  --aurora-soft: linear-gradient(100deg, rgba(124, 92, 255, .9), rgba(34, 211, 238, .9));
  --glow-violet: 0 0 0 1px rgba(124, 92, 255, .35), 0 18px 50px -12px rgba(124, 92, 255, .45);

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-1: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 30px -12px rgba(0, 0, 0, .6);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 30px 70px -24px rgba(0, 0, 0, .75);

  /* Type */
  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI",
    Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Cascadia Code", "Consolas", ui-monospace, monospace;

  /* Layout */
  --maxw: 1200px;
  --nav-h: 72px;

  /* Bootstrap overrides */
  --bs-body-bg: var(--bg-900);
  --bs-body-color: var(--ink-1);
  --bs-body-font-family: var(--font-sans);
  --bs-link-color: var(--ink-0);
  --bs-link-hover-color: var(--cyan);
  --bs-border-color: var(--hairline);
  --bs-emphasis-color: var(--ink-0);
}

/* ---------- 2. Base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg-900);
  color: var(--ink-1);
  font-family: var(--font-sans);
  font-size: 1.02rem;
  line-height: 1.68;
  letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Page-wide ambient backdrop: deep gradient + faint aurora glows + grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 12% -8%, rgba(124, 92, 255, .10), transparent 60%),
    radial-gradient(820px 560px at 92% 4%, rgba(34, 211, 238, .07), transparent 60%),
    radial-gradient(1100px 700px at 50% 120%, rgba(79, 107, 255, .07), transparent 55%),
    linear-gradient(180deg, var(--bg-900), var(--bg-850) 40%, var(--bg-900));
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
}

::selection { background: rgba(124, 92, 255, .35); color: #fff; }

a { color: inherit; text-decoration: none; transition: color .2s ease; }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5 {
  color: var(--ink-0);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.01em;
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 3. Layout helpers ---------- */
.container-x {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.section {
  position: relative;
  padding-block: clamp(72px, 11vw, 132px);
}
.section--tight { padding-block: clamp(56px, 8vw, 92px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--aurora);
}
.eyebrow--center::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--aurora);
}

.section-title {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  letter-spacing: -.012em;
  margin-bottom: 18px;
}
.section-lead {
  color: var(--ink-2);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  max-width: 62ch;
}
.section-head--center { text-align: center; }
.section-head--center .section-lead { margin-inline: auto; }

.gradient-text {
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.text-soft { color: var(--ink-2); }
.text-dim { color: var(--ink-3); }
.hairline { height: 1px; background: var(--hairline); border: 0; }

/* ---------- 4. Badges / pills ---------- */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline-2);
  background: var(--surface);
  color: var(--ink-1);
  font-size: .82rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
}
.badge-pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}
.badge-dim {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline);
  background: rgba(255,255,255,.03);
  color: var(--ink-2);
  font-size: .78rem;
  font-family: var(--font-mono);
  letter-spacing: .02em;
}

/* ---------- 5. Buttons ---------- */
.btn { font-weight: 600; letter-spacing: .01em; }

.btn-glow {
  --b: 1px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--r-pill);
  color: #fff;
  background: var(--aurora);
  background-size: 160% 160%;
  border: 0;
  box-shadow: 0 10px 30px -8px rgba(124, 92, 255, .6), 0 0 0 1px rgba(255,255,255,.06) inset;
  transition: transform .25s ease, box-shadow .25s ease, background-position .6s ease;
}
.btn-glow:hover {
  color: #fff;
  transform: translateY(-2px);
  background-position: 100% 0;
  box-shadow: 0 16px 44px -8px rgba(124, 92, 255, .75), 0 0 0 1px rgba(255,255,255,.12) inset;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--r-pill);
  color: var(--ink-0);
  background: var(--surface);
  border: 1px solid var(--hairline-2);
  backdrop-filter: blur(10px);
  transition: transform .25s ease, border-color .25s ease, background .25s ease, color .25s;
}
.btn-ghost:hover {
  color: #fff;
  transform: translateY(-2px);
  border-color: rgba(124, 92, 255, .6);
  background: rgba(124, 92, 255, .1);
}

.btn-arrow svg { transition: transform .25s ease; }
.btn-arrow:hover svg { transform: translateX(4px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-0);
  font-weight: 600;
}
.link-arrow svg { transition: transform .2s ease; }
.link-arrow:hover { color: var(--cyan); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 6. Navbar ---------- */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1030;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(7, 8, 21, .72);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--hairline);
}
.site-nav .container-x {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand img, .brand svg { height: 30px; width: auto; display: block; }
.brand .brand-name {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink-0);
  letter-spacing: .04em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu > li { position: relative; }
.nav-menu a.nav-item-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: var(--r-pill);
  color: var(--ink-1);
  font-size: .96rem;
  font-weight: 500;
  transition: color .2s ease, background .2s ease;
}
.nav-menu a.nav-item-link:hover { color: #fff; background: var(--surface); }
.nav-menu a.nav-item-link.active { color: #fff; }
.nav-menu a.nav-item-link.active::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--aurora);
}

/* Dropdown */
.nav-dd { position: relative; }
.nav-dd-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translate(-50%, 8px);
  width: 460px;
  padding: 12px;
  border-radius: var(--r-lg);
  background: rgba(10, 12, 27, .96);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(18px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav-dd:hover .nav-dd-menu,
.nav-dd:focus-within .nav-dd-menu {
  opacity: 1; visibility: visible;
  transform: translate(-50%, 0);
}
.dd-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease;
}
.dd-card:hover { background: var(--surface); border-color: var(--hairline); }
.dd-card .ic {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  color: var(--cyan);
}
.dd-card b { color: var(--ink-0); font-size: .96rem; display: block; }
.dd-card span { color: var(--ink-2); font-size: .82rem; line-height: 1.5; }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--hairline-2);
  background: var(--surface);
  color: var(--ink-0);
  cursor: pointer;
  align-items: center; justify-content: center;
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 1029;
  background: rgba(5, 6, 15, .98);
  backdrop-filter: blur(14px);
  padding: 24px clamp(20px, 5vw, 40px) 48px;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .3s ease, visibility .3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mobile-drawer.open { transform: translateX(0); visibility: visible; }
.mobile-drawer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 6px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink-0);
  border-bottom: 1px solid var(--hairline);
}
.mobile-drawer a.sub { font-size: 1rem; font-weight: 500; color: var(--ink-1); padding-left: 18px; }
.mobile-drawer .m-cta { margin-top: 22px; }
.mobile-drawer .m-cta .btn-glow { width: 100%; justify-content: center; }

/* ---------- 7. Cards ---------- */
.glass-card {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(6px);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s ease, box-shadow .35s ease;
}
.glass-card:hover {
  transform: translateY(-6px);
  border-color: var(--hairline-2);
  box-shadow: var(--shadow-2);
}

/* gradient hairline border on hover */
.glow-border {
  position: relative;
}
.glow-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(124,92,255,.6), rgba(34,211,238,.4), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.glow-border:hover::before { opacity: 1; }

.feature-card {
  padding: 30px;
  height: 100%;
}
.feature-card .ic {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(124,92,255,.22), rgba(34,211,238,.12));
  border: 1px solid var(--hairline-2);
  color: var(--cyan);
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.feature-card p { color: var(--ink-2); margin: 0; font-size: .98rem; }
.feature-card .meta {
  margin-top: 18px;
  display: flex; flex-wrap: wrap; gap: 8px;
}

/* ---------- 8. Bento grid ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.bento > * { min-width: 0; }
.b-3 { grid-column: span 3; }
.b-2 { grid-column: span 2; }
.b-4 { grid-column: span 4; }
.b-6 { grid-column: span 6; }
.bento-cell { padding: 30px; }
.bento-cell.tall { grid-row: span 2; }

/* ---------- 9. Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(48px, 9vw, 110px));
  padding-bottom: clamp(64px, 10vw, 120px);
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}
.hero-inner { position: relative; }
.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.08;
  letter-spacing: -.018em;
  margin: 22px 0 0;
}
.hero .hero-sub {
  margin-top: 26px;
  font-size: clamp(1.05rem, 1.9vw, 1.32rem);
  color: var(--ink-2);
  max-width: 56ch;
  line-height: 1.7;
}
.hero-cta {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-trust {
  margin-top: 46px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  color: var(--ink-3);
  font-size: .9rem;
}
.hero-trust .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); }

/* sub hero for inner pages */
.subhero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(56px, 8vw, 92px));
  padding-bottom: clamp(40px, 6vw, 70px);
  overflow: hidden;
}
.subhero h1 {
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  letter-spacing: -.018em;
  margin-top: 18px;
}
.subhero p { margin-top: 22px; color: var(--ink-2); font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 60ch; }

/* ---------- 10. Stats ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--hairline);
}
.stat {
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  padding: 34px 28px;
  text-align: center;
}
.stat .num {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink-0);
  line-height: 1;
}
.stat .num .unit { font-size: .55em; color: var(--cyan); margin-left: 2px; }
.stat .label { margin-top: 12px; color: var(--ink-2); font-size: .92rem; }

/* ---------- 11. Product cards (home) ---------- */
.product-card {
  display: flex;
  flex-direction: column;
  padding: 38px;
  height: 100%;
  overflow: hidden;
}
.product-card .pc-top { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.product-card .pc-logo {
  width: 54px; height: 54px;
  border-radius: 15px;
  display: grid; place-items: center;
  border: 1px solid var(--hairline-2);
  background: linear-gradient(160deg, rgba(124,92,255,.25), rgba(34,211,238,.12));
}
.product-card h3 { font-size: 1.6rem; }
.product-card .pc-tag { color: var(--ink-3); font-size: .85rem; font-family: var(--font-mono); }
.product-card p { color: var(--ink-2); }
.product-card .pc-list {
  list-style: none; padding: 0; margin: 18px 0 0;
  display: grid; gap: 11px;
}
.product-card .pc-list li {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--ink-1); font-size: .96rem;
}
.product-card .pc-list svg { flex: none; margin-top: 4px; color: var(--cyan); }
.product-card .pc-foot { margin-top: auto; padding-top: 26px; }

/* ---------- 12. Feature split (alternating) ---------- */
.feature-split { align-items: center; }
.feature-split .fs-visual {
  border-radius: var(--r-xl);
  border: 1px solid var(--hairline);
  background: linear-gradient(165deg, var(--bg-750), var(--bg-850));
  box-shadow: var(--shadow-2);
  padding: 26px;
  position: relative;
  overflow: hidden;
}
.feature-split .fs-visual::after {
  content: "";
  position: absolute;
  inset: -40% 40% 60% -10%;
  background: radial-gradient(circle, rgba(124,92,255,.12), transparent 60%);
  pointer-events: none;
}
.fs-kicker { color: var(--cyan); font-weight: 600; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.feature-split h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 14px 0 16px; }
.feature-split .chk {
  list-style: none; padding: 0; margin: 22px 0 0;
  display: grid; gap: 13px;
}
.feature-split .chk li { display: flex; gap: 11px; color: var(--ink-1); }
.feature-split .chk svg { flex: none; margin-top: 4px; color: var(--violet); }

/* Mock UI chips used inside visuals */
.mock {
  border-radius: 14px;
  border: 1px solid var(--hairline);
  background: rgba(255,255,255,.025);
  padding: 16px 18px;
}
.mock + .mock { margin-top: 12px; }
.mock .mock-row { display: flex; align-items: center; gap: 10px; }
.mock .pill { padding: 5px 11px; border-radius: 999px; font-size: .78rem; background: var(--surface-2); border: 1px solid var(--hairline); color: var(--ink-1); }
.mock .bar { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--violet), var(--cyan)); }
.mock .bar.dim { background: var(--hairline-2); }
.dots3 { display: flex; gap: 6px; }
.dots3 i { width: 8px; height: 8px; border-radius: 50%; display: block; background: var(--hairline-2); }
.dots3 i:nth-child(1){ background: rgba(124,92,255,.5); } .dots3 i:nth-child(2){ background: rgba(79,107,255,.4); } .dots3 i:nth-child(3){ background: rgba(34,211,238,.4); }

/* ---------- 13. Architecture diagram (SuperAgent) ---------- */
.arch {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 36px);
  border-radius: var(--r-xl);
  border: 1px solid var(--hairline);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.008));
}
.arch-row { display: grid; gap: 14px; }
.arch-node {
  border-radius: 14px;
  border: 1px solid var(--hairline-2);
  background: var(--surface);
  padding: 16px 18px;
  text-align: center;
}
.arch-node b { color: var(--ink-0); display: block; font-size: .98rem; }
.arch-node span { color: var(--ink-2); font-size: .82rem; }
.arch-node.accent { background: linear-gradient(160deg, rgba(124,92,255,.18), rgba(34,211,238,.08)); border-color: rgba(124,92,255,.4); }
.arch-core { border-color: rgba(34,211,238,.4); }
.arch-slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.arch-slot { font-size: .8rem; padding: 9px; text-align: center; border-radius: 10px; background: rgba(34,211,238,.08); border: 1px solid rgba(34,211,238,.22); color: var(--ink-1); }
.arch-caption { text-align: center; color: var(--ink-3); font-size: .82rem; }
.arch-flow { text-align: center; color: var(--ink-3); }

/* ---------- 14. Capability matrix table ---------- */
.matrix-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--hairline); }
table.matrix {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
}
table.matrix th, table.matrix td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
}
table.matrix thead th {
  color: var(--ink-2);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(255,255,255,.02);
}
table.matrix tbody tr:last-child td { border-bottom: 0; }
table.matrix tbody tr:hover { background: rgba(255,255,255,.02); }
table.matrix td.cap { color: var(--ink-0); font-weight: 500; }
table.matrix td.ck { text-align: center; }
.ck-yes { color: var(--cyan); }

/* ---------- 15. Code block ---------- */
.code-tabs { display: flex; gap: 8px; margin-bottom: -1px; }
.code-tab {
  padding: 9px 18px;
  border-radius: 12px 12px 0 0;
  border: 1px solid var(--hairline);
  border-bottom: 0;
  background: rgba(255,255,255,.02);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: .85rem;
  cursor: pointer;
}
.code-tab.active { background: var(--bg-800); color: var(--ink-0); border-color: var(--hairline-2); }
.code-block {
  border-radius: 0 14px 14px 14px;
  border: 1px solid var(--hairline-2);
  background: #070811;
  overflow: hidden;
}
.code-block .cb-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
}
.code-block .cb-bar .fn { margin-left: auto; color: var(--ink-3); font-family: var(--font-mono); font-size: .78rem; }
.code-block pre {
  margin: 0;
  padding: 20px 22px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: .86rem;
  line-height: 1.7;
  color: #c8cce4;
}
.code-block pre[hidden] { display: none; }
.tok-key { color: #c77dff; }
.tok-str { color: #7ce0c0; }
.tok-fn { color: #6ea8ff; }
.tok-com { color: #5d6285; font-style: italic; }
.tok-num { color: #f0a868; }

/* ---------- 16. Scenario / use-case cards ---------- */
.scene-card { padding: 26px; height: 100%; }
.scene-card .sc-ic {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--hairline);
  color: var(--cyan); margin-bottom: 16px;
}
.scene-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.scene-card p { color: var(--ink-2); font-size: .92rem; margin: 0; }
.scene-card .sc-domains { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- 17. CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  overflow: hidden;
  border: 1px solid var(--hairline-2);
  background:
    radial-gradient(600px 300px at 50% -20%, rgba(124,92,255,.35), transparent 65%),
    linear-gradient(180deg, rgba(124,92,255,.1), rgba(34,211,238,.06));
}
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 16px; }
.cta-band p { color: var(--ink-1); max-width: 56ch; margin: 0 auto 30px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- 18. Contact ---------- */
.contact-info { display: grid; gap: 16px; }
.contact-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px;
}
.contact-item .ci-ic {
  width: 46px; height: 46px; flex: none;
  border-radius: 13px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--hairline); color: var(--cyan);
}
.contact-item b { color: var(--ink-0); display: block; font-size: 1.02rem; }
.contact-item span { color: var(--ink-2); }

.form-control, .form-select, textarea.form-control {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--hairline-2);
  color: var(--ink-0);
  border-radius: 12px;
  padding: 13px 16px;
}
.form-control::placeholder { color: var(--ink-3); }
.form-control:focus, .form-select:focus {
  background: rgba(255,255,255,.05);
  border-color: rgba(124,92,255,.6);
  box-shadow: 0 0 0 3px rgba(124,92,255,.18);
  color: #fff;
}
.form-label { color: var(--ink-1); font-weight: 500; margin-bottom: 8px; }

/* ---------- 19. Values / about ---------- */
.value-card { padding: 28px; height: 100%; }
.value-card .v-num { font-family: var(--font-mono); color: var(--ink-3); font-size: .85rem; }
.value-card h3 { font-size: 1.18rem; margin: 10px 0 10px; font-weight: 700; }
.value-card p { color: var(--ink-2); margin: 0; font-size: .96rem; }

.milestone { display: flex; gap: 20px; }
.milestone .ms-line { display: flex; flex-direction: column; align-items: center; }
.milestone .ms-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--aurora); box-shadow: 0 0 14px rgba(124,92,255,.6); flex: none; }
.milestone .ms-bar { width: 2px; flex: 1; background: var(--hairline-2); margin-top: 4px; }
.milestone .ms-body { padding-bottom: 34px; }
.milestone .ms-body h3 { font-size: 1.12rem; }
.milestone .ms-body p { color: var(--ink-2); margin: 6px 0 0; }

/* ---------- 20. Tech chips + scroll hint ---------- */
.scroll-hint { display: none; color: var(--ink-2); font-size: .82rem; margin-bottom: 12px; }
.tech-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 18px; border-radius: var(--r-pill);
  border: 1px solid var(--hairline); background: var(--surface);
  color: var(--ink-1); font-size: .92rem; font-weight: 500;
}
.tech-chip svg { color: var(--cyan); }

/* ---------- 21. Footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: clamp(54px, 7vw, 80px) 34px;
  margin-top: 40px;
  background: linear-gradient(180deg, transparent, rgba(124,92,255,.04));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--ink-2); font-size: .94rem; max-width: 34ch; }
.footer-col h5 { color: var(--ink-0); font-size: .92rem; letter-spacing: .04em; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer-col a { color: var(--ink-2); font-size: .92rem; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--ink-3);
  font-size: .86rem;
}
.footer-bottom a { color: var(--ink-2); }
.footer-bottom a:hover { color: var(--cyan); }
.footer-beian { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- 22. Back to top ---------- */
.to-top {
  position: fixed;
  right: 26px; bottom: 26px;
  z-index: 1020;
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(10,12,27,.8);
  border: 1px solid var(--hairline-2);
  color: var(--ink-0);
  backdrop-filter: blur(10px);
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s, border-color .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { border-color: rgba(124,92,255,.6); color: #fff; }

/* ---------- 22b. WeChat QR (trigger + modal + frame) ---------- */
.qr-frame {
  width: 240px; height: 240px;
  margin: 0 auto;
  border-radius: 16px;
  background: #fff;
  padding: 12px;
  display: grid; place-items: center;
}
.qr-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.qr-fallback {
  display: none;
  width: 100%; height: 100%;
  border-radius: 10px;
  border: 1px dashed #c9cce0;
  background: #f4f5fb;
  color: #5d6285;
  font-size: .82rem; line-height: 1.6;
  place-items: center; text-align: center;
  padding: 16px;
}
.wechat-modal {
  position: fixed; inset: 0; z-index: 2000;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(3, 4, 12, .82);
  backdrop-filter: blur(8px);
}
.wechat-modal.open { display: flex; }
.wechat-card {
  position: relative;
  max-width: 340px; width: 100%;
  padding: 30px;
  border-radius: var(--r-lg);
  background: var(--bg-750);
  border: 1px solid var(--hairline-2);
  box-shadow: var(--shadow-2);
  text-align: center;
}
.wechat-card h3 { font-size: 1.2rem; margin-bottom: 18px; }
.wechat-card p { color: var(--ink-2); margin: 16px 0 0; font-size: .92rem; }
.wc-close {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid var(--hairline-2);
  background: var(--surface);
  color: var(--ink-1);
  cursor: pointer;
  display: grid; place-items: center;
}
.wc-close:hover { color: #fff; border-color: rgba(124,92,255,.6); }

/* ---------- 23. Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

/* ---------- 24. Responsive ---------- */
@media (min-width: 992px) {
  /* drawer is a mobile-only construct; keep it out of the desktop a11y tree */
  .mobile-drawer { display: none; }
}

@media (max-width: 991px) {
  .nav-menu, .nav-cta .btn-glow { display: none; }
  .nav-toggle { display: inline-flex; }
  .arch-slots { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  :root { --nav-h: 64px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-3, .b-2, .b-4, .b-6 { grid-column: span 2; }
  .bento-cell.tall { grid-row: auto; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .arch-slots { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-trust { gap: 10px 16px; }
  .scroll-hint { display: block; }
}

@media (max-width: 480px) {
  .stats-band { grid-template-columns: 1fr; }
  .feature-card, .product-card, .bento-cell { padding: 24px; }
}

/* ---------- 25. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Utilities */
.mb-section { margin-bottom: clamp(40px, 6vw, 64px); }
.maxw-720 { max-width: 720px; }
.maxw-820 { max-width: 820px; }
.center { text-align: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-12 { gap: 12px; }
.mono { font-family: var(--font-mono); }
.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
