/* ===== fonts ===== */
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/space-grotesk-500.woff2') format('woff2');}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/space-grotesk-600.woff2') format('woff2');}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/space-grotesk-700.woff2') format('woff2');}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/dm-sans-400.woff2') format('woff2');}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/dm-sans-500.woff2') format('woff2');}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:600;font-display:swap;src:url('/fonts/dm-sans-600.woff2') format('woff2');}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:700;font-display:swap;src:url('/fonts/dm-sans-700.woff2') format('woff2');}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400;font-display:swap;src:url('/fonts/jetbrains-mono-400.woff2') format('woff2');}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:500;font-display:swap;src:url('/fonts/jetbrains-mono-500.woff2') format('woff2');}


/* ===== tokens ===== */
/* ----- Tokens ------------------------------------------------------------ */
:root {
  /* Color */
  --c-primary: #0F172A;
  --c-primary-700: #1E293B;
  --c-primary-600: #334155;
  --c-on-primary: #FFFFFF;
  --c-text: #020617;
  --c-text-muted: #475569;
  --c-text-subtle: #64748B;
  --c-bg: #F8FAFC;
  --c-surface: #FFFFFF;
  --c-bg-soft: #F1F5F9;
  --c-muted: #E8ECF1;
  --c-border: #E2E8F0;
  --c-border-strong: #CBD5E1;
  --c-accent: #0369A1;
  --c-accent-hover: #075985;
  --c-blue-500: #2563EB;
  --c-blue-600: #1D4ED8;
  --c-success: #10B981;
  --c-danger: #DC2626;

  /* Gradients */
  --grad-cta: linear-gradient(135deg, #0052FF 0%, #4D7CFF 100%);
  --grad-cta-hover: linear-gradient(135deg, #003ECC 0%, #3D6CEF 100%);
  --grad-mesh:
    radial-gradient(60% 80% at 18% 0%, rgba(77, 124, 255, 0.18), transparent 60%),
    radial-gradient(60% 60% at 100% 18%, rgba(0, 82, 255, 0.14), transparent 60%);

  /* Typography */
  --f-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --f-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;

  /* Spacing (4pt) */
  --s-1: 4px;  --s-2: 8px;   --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px;  --s-8: 32px; --s-10: 40px;
  --s-12: 48px;--s-16: 64px; --s-20: 80px;--s-24: 96px;

  /* Radius */
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 20px; --r-2xl: 28px; --r-full: 999px;

  /* Shadows */
  --sh-1: 0 1px 2px rgba(15,23,42,0.04), 0 1px 1px rgba(15,23,42,0.02);
  --sh-2: 0 4px 12px -2px rgba(15,23,42,0.06), 0 2px 4px rgba(15,23,42,0.04);
  --sh-3: 0 12px 32px -8px rgba(15,23,42,0.10), 0 4px 12px rgba(15,23,42,0.05);
  --sh-4: 0 24px 64px -16px rgba(15,23,42,0.14), 0 8px 24px rgba(15,23,42,0.06);
  --sh-cta: 0 8px 20px -6px rgba(0, 82, 255, 0.45);
  --sh-cta-hover: 0 16px 32px -8px rgba(0, 82, 255, 0.55);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --d-fast: 150ms;
  --d-base: 220ms;
  --d-slow: 320ms;

  /* Z-index */
  --z-nav: 100;
  --z-dropdown: 200;
  --z-modal: 1000;

  /* GEO / AI-agent accents + mono + motion (Task 2) */
  --c-cited: #047857;
  --c-cited-bg: #ECFDF5;
  --c-agent: #6D28D9;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --t-fast: 150ms; --t-base: 220ms; --t-slow: 320ms;
}



/* ===== base ===== */
/* ----- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding-top: 64px;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--d-fast) var(--ease-out); }
button { font-family: inherit; cursor: pointer; }
ul { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--c-primary);
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--c-blue-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ----- Scroll-reveal ----------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out),
              transform 0.6s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Reduced motion ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html[lang="zh-CN"] h1, html[lang="zh-CN"] h2, html[lang="zh-CN"] h3 { letter-spacing: 0; line-height: 1.3; font-weight: 600; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { letter-spacing: -0.02em; line-height: 1.15; font-weight: 700; }
html[lang="en"] body { line-height: 1.6; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--c-primary); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 1000; }
.skip-link:focus { left: 8px; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.ico { width: 1.25em; height: 1.25em; vertical-align: -0.2em; }


/* ===== layout ===== */
/* ----- Layout ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s-6);
}
@media (min-width: 1024px) { .container { padding: 0 var(--s-8); } }

.section { padding: var(--s-20) 0; }
.section.alt { background: var(--c-bg-soft); }
@media (max-width: 768px) { .section { padding: var(--s-16) 0; } }

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: var(--s-12);
  text-align: center;
}
.section-title::before {
  content: attr(data-kicker);
  display: block;
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--s-3);
}

/* Eyebrow / Kicker pill (used in hero + page header) */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  background: rgba(3, 105, 161, 0.08);
  border: 1px solid rgba(3, 105, 161, 0.18);
  padding: 6px 14px;
  border-radius: var(--r-full);
  margin-bottom: var(--s-5);
}
.kicker::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 4px rgba(3, 105, 161, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

/* Legacy bracket / underline decorations from old developer theme */
.bracket, .hero-underline { display: none; }



/* ===== components ===== */
/* ----- Buttons ----------------------------------------------------------- */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: var(--r-md);
  border: 0;
  background: var(--grad-cta);
  color: #fff;
  box-shadow: var(--sh-cta);
  transition: transform var(--d-fast) var(--ease-spring),
              box-shadow var(--d-base) var(--ease-out),
              background var(--d-base) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
}
.cta-button i { transition: transform var(--d-base) var(--ease-spring); }
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-cta-hover);
  background: var(--grad-cta-hover);
}
.cta-button:hover i { transform: translateX(3px); }
.cta-button:active { transform: translateY(0) scale(0.98); }
.cta-button.ghost {
  background: transparent;
  color: var(--c-primary);
  border: 1px solid var(--c-border-strong);
  box-shadow: none;
}
.cta-button.ghost:hover {
  background: var(--c-surface);
  border-color: var(--c-primary);
  box-shadow: var(--sh-2);
}

/* ----- Buttons (nav / GEO CTA family) ------------------------------------ */
.btn-primary {
  height: 48px;
  padding: 0 24px;
  border-radius: var(--r-md);
  border: 0;
  background: var(--grad-cta);
  color: #fff;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              background var(--t-base) var(--ease-out);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-cta-hover);
}
.btn-primary:active { transform: scale(0.98); }
.btn-primary:focus-visible { outline: 2px solid var(--c-blue-500); outline-offset: 2px; }

.btn-secondary {
  height: 48px;
  padding: 0 24px;
  border-radius: var(--r-md);
  background: #fff;
  color: var(--c-primary);
  border: 1px solid var(--c-primary);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--t-base) var(--ease-out);
}
.btn-secondary:hover { background: var(--c-primary); color: #fff; }
.btn-secondary:focus-visible { outline: 2px solid var(--c-blue-500); outline-offset: 2px; }

.btn-ghost {
  height: 48px;
  padding: 0 24px;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--c-text);
  border: 1px solid var(--c-border-strong);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--t-base) var(--ease-out);
}
.btn-ghost:hover { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-bg-soft); }
.btn-ghost:focus-visible { outline: 2px solid var(--c-blue-500); outline-offset: 2px; }

.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }

/* Tech chips */
.tech-chip {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--r-full);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  color: var(--c-text-muted);
  letter-spacing: 0.02em;
  transition: all var(--d-fast) var(--ease-out);
}
.tech-chip:hover { border-color: var(--c-accent); color: var(--c-accent); }

/* ----- Nav actions / lang switch ------------------------------------------ */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-switch {
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #F1F5F9;
  border-radius: 999px;
  padding: 0 12px;
  font-weight: 600;
  font-size: 13px;
  color: var(--c-text-muted);
  transition: all var(--t-fast) var(--ease-out);
}
.lang-switch:hover { background: var(--c-border); color: var(--c-primary); }
.ico-sm { width: 1em; height: 1em; }

/* ----- Footer ------------------------------------------------------------ */
.footer {
  background: var(--c-primary);
  color: rgba(255, 255, 255, 0.75);
  padding: var(--s-12) 0 var(--s-8);
}
.footer-content { display: flex; justify-content: center; }
.footer-info { text-align: center; max-width: 720px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-8);
  padding-bottom: var(--s-10);
}
.footer-grid h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--s-4);
}
.footer-grid ul { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: var(--s-6);
  text-align: center;
}
.footer .copyright {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  margin: 0 0 var(--s-2);
}
.footer .signature {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 var(--s-4);
}
.footer .icp, .footer .police-beian {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin: 4px 0;
}
.footer a { color: rgba(255, 255, 255, 0.7); }
.footer a:hover { color: #fff; }
/* ICP 链接嵌在 rgba(255,255,255,0.55) 的说明文字里，颜色对比不足以区分链接与正文
   （1.49:1），加下划线做非颜色区分，满足 link-in-text-block 可访问性要求。 */
.footer .icp a { text-decoration: underline; text-underline-offset: 2px; }
.footer .police-beian a { display: inline-flex; align-items: center; gap: 6px; }
.footer .police-beian img { width: 18px; height: 18px; }

/* ----- Back to top ------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: var(--s-6);
  right: var(--s-6);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--grad-cta);
  color: #fff;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 12px 28px -8px rgba(0, 82, 255, 0.45);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--d-base) var(--ease-out),
              transform var(--d-base) var(--ease-spring),
              box-shadow var(--d-base) var(--ease-out);
  z-index: 80;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -8px rgba(0, 82, 255, 0.55);
}


/* ----- Language banner (auto-suggest EN for en-* browsers) --------------- */
.lang-banner{display:flex;gap:12px;justify-content:center;align-items:center;background:#0F172A;color:#fff;padding:8px 16px;font-size:14px}
.lang-banner a{color:#93C5FD}
.lang-banner button{background:none;border:0;color:#fff;cursor:pointer;font-size:18px}


/* ===== sections ===== */
/* ----- Navbar ------------------------------------------------------------ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  transition: background var(--d-base) var(--ease-out),
              box-shadow var(--d-base) var(--ease-out);
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--sh-1);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: var(--s-2); }
.logo a { display: flex; align-items: center; }
.logo img { height: 32px; width: 52px; }
.logo-text {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--c-primary);
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links > li { position: relative; }
.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-muted);
  border-radius: var(--r-sm);
  transition: all var(--d-fast) var(--ease-out);
}
.nav-item:hover { color: var(--c-primary); background: var(--c-bg-soft); }
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu {
  position: absolute;
  top: 100%; left: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-3);
  padding: 6px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all var(--d-base) var(--ease-out);
  z-index: var(--z-dropdown);
}
.dropdown-menu .nav-item { display: block; padding: 8px 12px; width: 100%; }
.mobile-menu {
  display: none;
  font-size: 22px;
  color: var(--c-primary);
  cursor: pointer;
  padding: 6px;
}
@media (max-width: 1023px) {
  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--c-border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    transform: translateY(-12px);
    opacity: 0; visibility: hidden;
    transition: all var(--d-base) var(--ease-out);
    box-shadow: var(--sh-3);
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
  }
  .nav-links.active { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-links .nav-item { padding: 12px 16px; font-size: 16px; }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 16px;
    margin: 0;
    opacity: 1; visibility: visible; transform: none;
  }
  .mobile-menu { display: block; }
}

/* ----- Hero -------------------------------------------------------------- */
.hero {
  padding: var(--s-16) 0 var(--s-20);
  background: var(--c-bg);
  background-image: var(--grad-mesh);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(80% 60% at 50% 30%, #000 0%, transparent 75%);
          mask-image: radial-gradient(80% 60% at 50% 30%, #000 0%, transparent 75%);
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--s-16);
  align-items: center;
  position: relative;
}
.hero-text h1 {
  font-size: clamp(36px, 5.4vw, 64px);
  margin: var(--s-2) 0 var(--s-5);
}
.hero-text h1 .gradient {
  background: var(--grad-cta);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.lead {
  font-size: 17px;
  color: var(--c-text-muted);
  margin: 0 0 var(--s-6);
  line-height: 1.7;
  max-width: 540px;
}
.hero-stack {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: var(--s-8);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.claim-mark {
  font-size: 0.42em;
  color: var(--c-text-subtle);
  font-weight: 500;
  vertical-align: super;
  margin-left: 3px;
  -webkit-text-fill-color: var(--c-text-subtle);
}
.hero-disclaimer {
  margin: var(--s-5) 0 0;
  font-size: 12px;
  color: var(--c-text-subtle);
  line-height: 1.55;
  max-width: 540px;
}
.hero-disclaimer sup { margin-right: 2px; }

/* Hero visual: bento preview */
.hero-visual {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-3);
  position: relative;
}
.hv-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  box-shadow: var(--sh-2);
  transition: transform var(--d-slow) var(--ease-spring),
              box-shadow var(--d-slow) var(--ease-out);
}
.hv-card:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }
.hv-card .label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-subtle);
  font-weight: 600;
}
.hv-card .value {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 32px;
  color: var(--c-primary);
  line-height: 1.1;
  margin-top: 6px;
  letter-spacing: -0.02em;
}
.hv-card .value sup {
  font-size: 16px;
  background: var(--grad-cta);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  margin-left: 2px;
  top: -0.6em;
}
.hv-card .desc { font-size: 13px; color: var(--c-text-muted); margin-top: 8px; }
.hv-card.featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #fff;
  border: 0;
  position: relative;
  overflow: hidden;
}
.hv-card.featured::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: var(--grad-mesh);
  opacity: 0.6;
  pointer-events: none;
}
.hv-card.featured > * { position: relative; z-index: 1; }
.hv-card.featured .label { color: rgba(255, 255, 255, 0.65); }
.hv-card.featured .value { color: #fff; }
.hv-card.featured .desc { color: rgba(255, 255, 255, 0.78); }
.hv-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(0, 82, 255, 0.12);
  color: var(--c-blue-500);
  margin-bottom: var(--s-3);
  font-size: 16px;
}
.hv-card.featured .hv-icon {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.hv-bars {
  display: flex; align-items: flex-end; gap: 6px;
  height: 56px;
  margin-top: var(--s-3);
}
.hv-bars span {
  flex: 1;
  background: linear-gradient(180deg, #4D7CFF 0%, #0052FF 100%);
  border-radius: 3px;
  opacity: 0.9;
  animation: bar-rise 1.2s var(--ease-out) both;
}
.hv-bars span:nth-child(1) { height: 38%; animation-delay: 0.05s; }
.hv-bars span:nth-child(2) { height: 62%; animation-delay: 0.12s; }
.hv-bars span:nth-child(3) { height: 48%; animation-delay: 0.20s; }
.hv-bars span:nth-child(4) { height: 80%; animation-delay: 0.28s; }
.hv-bars span:nth-child(5) { height: 95%; animation-delay: 0.36s; }
.hv-bars span:nth-child(6) { height: 70%; animation-delay: 0.44s; }
@keyframes bar-rise {
  from { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
  to { transform: scaleY(1); opacity: 0.9; }
}

/* Old terminal markup hidden (replaced by .hero-visual) */
.hero-terminal { display: none; }

@media (max-width: 1023px) {
  .hero .container { grid-template-columns: 1fr; gap: var(--s-10); }
  .hero-visual { max-width: 540px; }
}

/* ----- Impact Strip ------------------------------------------------------ */
.impact-strip {
  background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-soft) 100%);
  padding: var(--s-12) 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
}
.impact-item { text-align: center; padding: var(--s-4); }
.impact-item .num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(36px, 4vw, 52px);
  color: var(--c-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}
.impact-item .num span {
  background: var(--grad-cta);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.impact-item .label {
  display: block;
  margin-top: var(--s-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.impact-item .desc { margin-top: var(--s-2); color: var(--c-text-muted); font-size: 14px; }
@media (max-width: 768px) { .impact-grid { grid-template-columns: repeat(2, 1fr); } }

/* ----- Advantages -------------------------------------------------------- */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}
.advantage-item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  position: relative;
  overflow: hidden;
  transition: transform var(--d-slow) var(--ease-spring),
              box-shadow var(--d-slow) var(--ease-out),
              border-color var(--d-base) var(--ease-out);
}
.advantage-item::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 140px; height: 140px;
  background: radial-gradient(circle at 0 0, rgba(0, 82, 255, 0.08), transparent 70%);
  pointer-events: none;
}
.advantage-item:hover {
  transform: translateY(-4px);
  border-color: var(--c-accent);
  box-shadow: var(--sh-3);
}
.advantage-item .ico {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(0, 82, 255, 0.12), rgba(77, 124, 255, 0.12));
  color: var(--c-blue-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: var(--s-5);
}
.advantage-item h3 { font-size: 20px; margin-bottom: var(--s-2); }
.advantage-item p {
  color: var(--c-text-muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}
@media (max-width: 768px) { .advantage-grid { grid-template-columns: 1fr; } }

/* ----- Services (Bento, 5 cards) ---------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-5);
}
.service-item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  transition: transform var(--d-slow) var(--ease-spring),
              box-shadow var(--d-slow) var(--ease-out),
              border-color var(--d-base);
  overflow: hidden;
  position: relative;
}
.service-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-3);
  border-color: var(--c-accent);
}
.service-item--ai { grid-column: span 3; }
.service-item--web { grid-column: span 3; }
.service-item--soft { grid-column: span 2; }
.service-item--ent { grid-column: span 2; }
.service-item--global { grid-column: span 2; }
@media (max-width: 1023px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-item { grid-column: span 1 !important; }
  .service-item--ai { grid-column: span 2 !important; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-item, .service-item--ai { grid-column: span 1 !important; }
}
.service-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}
.service-head i {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(0, 82, 255, 0.10), rgba(77, 124, 255, 0.10));
  color: var(--c-blue-600);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.service-head::after {
  content: attr(data-tag);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-subtle);
  background: var(--c-bg-soft);
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-family: var(--f-mono);
}
.service-body h3 { font-size: 19px; margin-bottom: var(--s-3); }
.service-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--s-4);
}
.service-list li {
  position: relative;
  padding-left: 22px;
  color: var(--c-text-muted);
  font-size: 14.5px;
  line-height: 1.55;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(3, 105, 161, 0.10);
  border: 1px solid rgba(3, 105, 161, 0.30);
}
.service-list li::after {
  content: "";
  position: absolute;
  left: 4px; top: 12px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
}
.service-stack { display: flex; flex-wrap: wrap; gap: 6px; }

/* ----- Tech Stack -------------------------------------------------------- */
.tech-stack-grid { display: flex; flex-direction: column; gap: var(--s-3); }
.tech-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--s-5);
  align-items: center;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-5) var(--s-6);
  transition: border-color var(--d-base) var(--ease-out),
              box-shadow var(--d-base) var(--ease-out);
}
.tech-row:hover { border-color: var(--c-border-strong); box-shadow: var(--sh-1); }
.tech-row .label {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.tech-row .items { display: flex; flex-wrap: wrap; gap: 8px; }
.ti {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  background: var(--c-bg-soft);
  color: var(--c-primary);
  border: 1px solid transparent;
  transition: all var(--d-fast) var(--ease-out);
}
.ti:hover {
  background: #fff;
  border-color: var(--c-accent);
  color: var(--c-accent);
  transform: translateY(-1px);
}
.ti i { color: var(--c-blue-500); }
@media (max-width: 768px) {
  .tech-row { grid-template-columns: 1fr; gap: var(--s-3); padding: var(--s-4); }
}

/* ----- Industries -------------------------------------------------------- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.industry-item {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
  padding: var(--s-5);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  border-radius: var(--r-lg);
  transition: all var(--d-base) var(--ease-out);
}
.industry-item:hover {
  border-color: var(--c-accent);
  box-shadow: var(--sh-2);
  transform: translateY(-2px);
}
.industry-item > i {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, rgba(0, 82, 255, 0.10), rgba(77, 124, 255, 0.10));
  color: var(--c-blue-600);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.industry-content h4 { font-size: 16px; margin: 0 0 4px; }
.industry-content p { color: var(--c-text-muted); font-size: 14px; margin: 0; }
@media (max-width: 768px) { .industries-grid { grid-template-columns: 1fr; } }

/* ----- Workflow ---------------------------------------------------------- */
.workflow-shell {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2xl);
  padding: var(--s-10);
  box-shadow: var(--sh-1);
}
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-5);
  position: relative;
}
.workflow-grid::before {
  content: "";
  position: absolute;
  top: 28px; left: 8%; right: 8%;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--c-border-strong) 8%,
    var(--c-border-strong) 92%,
    transparent 100%);
  z-index: 0;
}
.workflow-item { text-align: center; position: relative; z-index: 1; }
.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--c-surface);
  border: 2px solid var(--c-border);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--c-text-muted);
  margin: 0 auto var(--s-3);
  transition: all var(--d-base) var(--ease-out);
}
.workflow-item:hover .step-no {
  border-color: var(--c-accent);
  color: #fff;
  background: var(--grad-cta);
  transform: scale(1.06);
  box-shadow: 0 8px 16px -4px rgba(0, 82, 255, 0.45);
}
.workflow-item .ico { display: none; }
.workflow-item h3 { font-size: 16px; margin-bottom: 4px; }
.workflow-item p { font-size: 13px; color: var(--c-text-muted); margin: 0; }
@media (max-width: 1023px) {
  .workflow-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
  .workflow-grid::before { display: none; }
}
@media (max-width: 600px) {
  .workflow-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow-shell { padding: var(--s-6); }
}

/* ----- Cases ------------------------------------------------------------- */
.case-grid,
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}
.case-item,
.case-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--d-slow) var(--ease-spring),
              box-shadow var(--d-slow) var(--ease-out),
              border-color var(--d-base);
  display: flex;
  flex-direction: column;
}
.case-item:hover,
.case-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-accent);
  box-shadow: var(--sh-3);
}
.case-item > img,
.case-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--c-bg-soft);
  transition: transform var(--d-slow) var(--ease-out);
}
.case-image { overflow: hidden; }
.case-item:hover > img,
.case-card:hover .case-image img { transform: scale(1.04); }
.case-content {
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  flex: 1;
}
.case-content h3 { font-size: 17px; margin: 0; }
.case-content h3::before {
  content: attr(data-no);
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--c-accent);
  background: rgba(3, 105, 161, 0.10);
  padding: 3px 8px;
  border-radius: var(--r-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-right: 8px;
  vertical-align: middle;
}
.case-content p {
  color: var(--c-text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
@media (max-width: 1023px) {
  .case-grid, .cases-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .case-grid, .cases-grid { grid-template-columns: 1fr; }
}
.more-cases-wrapper {
  display: flex;
  justify-content: center;
  margin-top: var(--s-10);
}
.more-cases-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 12px 24px;
  border-radius: var(--r-md);
  background: var(--c-surface);
  color: var(--c-primary);
  border: 1px solid var(--c-border-strong);
  font-weight: 600;
  font-size: 14px;
  transition: all var(--d-base) var(--ease-out);
}
.more-cases-btn:hover {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
  transform: translateY(-1px);
  box-shadow: var(--sh-2);
}
.more-cases-btn i { transition: transform var(--d-base) var(--ease-spring); }
.more-cases-btn:hover i { transform: translateX(3px); }

/* ----- Partners ---------------------------------------------------------- */
.partner-grid {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  align-items: center;
}
.partner-row-1, .partner-row-2 {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-10);
  justify-content: center;
  align-items: center;
  width: 100%;
}
.partner-grid img {
  height: 56px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.6);
  transition: filter var(--d-base) var(--ease-out),
              transform var(--d-base) var(--ease-spring);
}
.partner-grid img:hover { filter: grayscale(0) opacity(1); transform: scale(1.06); }

/* ----- Contact ----------------------------------------------------------- */
.contact-section { background: var(--c-bg-soft); }
.contact-info {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--s-8);
  align-items: stretch;
}
.contact-list { display: flex; flex-direction: column; gap: var(--s-4); }
.contact-item {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  transition: all var(--d-base) var(--ease-out);
}
.contact-item:hover { border-color: var(--c-accent); box-shadow: var(--sh-2); transform: translateY(-2px); }
.contact-item > i {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: var(--r-sm);
  background: rgba(0, 82, 255, 0.10);
  color: var(--c-blue-600);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.ci-body h3 {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--c-text-subtle);
  margin: 0 0 4px;
}
.ci-body p { margin: 0; color: var(--c-primary); font-size: 15px; font-weight: 500; }
.contact-qrcard {
  background: linear-gradient(135deg, var(--c-primary) 0%, #1E293B 100%);
  color: #fff;
  border-radius: var(--r-lg);
  padding: var(--s-6);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  position: relative;
  overflow: hidden;
}
.contact-qrcard::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-mesh);
  opacity: 0.5;
  pointer-events: none;
}
.contact-qrcard > * { position: relative; z-index: 1; }
.contact-qrcard .label {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
}
.contact-qrcard h3 { color: #fff; font-size: 18px; }
.contact-qrcard .qrcode-img {
  width: 160px; height: 160px;
  background: #fff;
  padding: 8px;
  border-radius: var(--r-md);
}
.contact-qrcard .hint { font-size: 13px; color: rgba(255, 255, 255, 0.78); }
@media (max-width: 1023px) { .contact-info { grid-template-columns: 1fr; } }


/* ========================================================================== */
/* Home redesign 2026-09 — hero visual, bento, proof, stages, FAQ, contact    */
/* ========================================================================== */

/* ----- Hero visual: Agent trace × citation link -------------------------- */
.hero-visual.hv-agent {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  position: relative;
}
.hv-agent .hv-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 20px;
  box-shadow: var(--sh-3);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.hv-agent .hv-trace { transform: translate(-12px, -12px); }
.hv-agent .hv-cite { transform: translate(12px, 0); }
.hv-agent .hv-trace:hover { transform: translate(-12px, -15px); }
.hv-agent .hv-cite:hover { transform: translate(12px, -3px); }
.hv-bar { display: flex; gap: 6px; }
.hv-bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--c-border-strong);
}
.hv-bar span:first-child { background: #F0B4B4; }
.hv-bar span:nth-child(2) { background: #F2D9A4; }
.hv-bar span:nth-child(3) { background: #B6DFC6; }
.hv-trace ol {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-text-muted);
}
.hv-trace ol li { display: flex; align-items: baseline; }
.dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
  background: var(--c-cited);
}
.dot.run { background: var(--c-agent); }
.cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--c-primary);
  margin-left: 4px;
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hv-answer {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-text-muted);
  background: var(--c-bg-soft);
  border-radius: var(--r-md);
  padding: 12px 14px;
}
.cite-chip {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-cited);
  background: var(--c-cited-bg);
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 4px;
  top: 0;
}
.hv-link { display: block; width: 100%; max-width: 200px; height: auto; margin: 4px 0; }
.hv-source {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--c-text-muted);
  word-break: break-all;
}
.hv-source img { flex-shrink: 0; }

/* ----- Trust strip ------------------------------------------------------- */
.trust-strip {
  background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-soft) 100%);
  padding: var(--s-12) 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.trust-label {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-text-subtle);
  margin: 0 0 var(--s-6);
}
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-8);
  margin: 0 0 var(--s-8);
}
.trust-logos li { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.trust-logos img { height: 40px; width: auto; object-fit: contain; filter: grayscale(1) opacity(0.65); }
.tl-evidence { font-size: 12px; color: var(--c-text-subtle); }
.trust-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-6) var(--s-16);
  margin: 0;
}
.trust-metrics li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  max-width: 280px;
}
.tm-value {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--c-primary);
}
.tm-label { font-size: 14px; font-weight: 600; color: var(--c-text); }
.tm-basis { font-size: 12px; color: var(--c-text-subtle); line-height: 1.5; }

/* ----- Bento (6 services) ------------------------------------------------ */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  grid-auto-rows: minmax(220px, auto);
}
.bento-4x2 { grid-column: span 4; grid-row: span 2; }
.bento-2x1 { grid-column: span 2; }
.bento-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  overflow: hidden;
  transition: transform var(--d-slow) var(--ease-spring),
              box-shadow var(--d-slow) var(--ease-out),
              border-color var(--d-base) var(--ease-out);
}
.bento-card.bento-4x2 { border-radius: var(--r-xl); padding: var(--s-8); }
.bento-card:hover { transform: translateY(-3px); box-shadow: var(--sh-3); border-color: var(--c-accent); }
.bento-card.is-cited { border-color: var(--c-cited); }
.bento-card.is-cited:hover { border-color: var(--c-cited); box-shadow: 0 12px 32px -8px rgba(4, 120, 87, 0.18); }
.bc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); }
.bc-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: rgba(3, 105, 161, 0.10);
  color: var(--c-accent);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bc-icon .ico { width: 20px; height: 20px; }
.badge-cited {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--c-cited);
  background: var(--c-cited-bg);
  border: 1px solid rgba(4, 120, 87, 0.24);
  padding: 3px 8px;
  border-radius: var(--r-full);
  line-height: 1.4;
}
.bento-card h2,
.bento-card h3 { font-size: 18px; margin: 0; }
.bento-card.bento-4x2 h3 { font-size: 22px; }
.bc-tagline {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--c-text-muted);
}
.bc-trace {
  list-style: none;
  margin: var(--s-2) 0 0;
  padding: 14px 16px;
  background: var(--c-bg-soft);
  border-radius: var(--r-md);
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--c-text-muted);
}
.bc-trace li { display: flex; align-items: baseline; }
.bc-points { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.bc-points li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text-muted);
}
.bc-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
}
.bc-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-accent);
}
.bento-card:hover .bc-more .ico { transform: translateX(3px); }
.bc-more .ico { transition: transform var(--d-base) var(--ease-spring); }
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-4x2 { grid-column: span 2; grid-row: auto; }
  .bento-2x1 { grid-column: span 1; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .bento-4x2, .bento-2x1 { grid-column: span 1; grid-row: auto; }
}

/* ----- Proof ("we are our own case study") ------------------------------- */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}
.proof-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.proof-no {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--c-cited);
}
.proof-card h3 { font-size: 18px; margin: 0; }
.proof-card p { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--c-text-muted); }
.proof-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-accent);
}
.proof-pending {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-size: 12px;
  color: var(--c-text-muted);
  background: var(--c-bg-soft);
  border: 1px dashed var(--c-border-strong);
  border-radius: var(--r-full);
  padding: 4px 12px;
  line-height: 1.5;
}
@media (max-width: 1024px) { .proof-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .proof-grid { grid-template-columns: 1fr; } }

/* ----- Case cards (home) ------------------------------------------------- */
.case-image { position: relative; display: block; }
.case-card .case-image img { aspect-ratio: 16 / 10; }
.case-pill {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--c-primary);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  padding: 4px 10px;
}
.case-card .case-content { position: relative; }
.case-content .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.case-ext {
  position: absolute;
  top: calc(var(--s-5) - 4px); right: calc(var(--s-5) - 4px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  padding: 4px;
  color: var(--c-text-subtle);
}
.case-ext:hover { color: var(--c-accent); }

/* ----- Compact case strip ------------------------------------------------ */
.case-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s-3);
}
.case-compact {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 56px;
  padding: 8px 12px;
  background: var(--c-bg-soft);
  border-radius: var(--r-md);
  transition: background var(--d-base) var(--ease-out),
              box-shadow var(--d-base) var(--ease-out);
}
.case-compact:hover { background: var(--c-surface); box-shadow: var(--sh-1); }
.case-compact img {
  width: 64px; height: 40px;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--c-muted);
  flex-shrink: 0;
}
.cc-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cc-cat {
  margin-left: auto;
  font-size: 11px;
  color: var(--c-text-muted);
  white-space: nowrap;
}
.case-compact-more { justify-content: center; font-weight: 600; color: var(--c-accent); }

/* ----- Stages (3-stage process) ------------------------------------------ */
.stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
  counter-reset: stage;
  margin: 0;
}
.stage {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}
.stage-no {
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.stage-body h3 { font-size: 17px; margin: 0 0 var(--s-2); }
.stage-sub { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.stage-sub li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text-muted);
}
.stage-sub li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-border-strong);
}
@media (max-width: 1024px) { .stages { grid-template-columns: 1fr; } }

/* ----- FAQ (visible details + permalink) --------------------------------- */
.faq-wrap { max-width: 760px; margin: 0 auto; }
.faq-list { border-top: 1px solid var(--c-border); }
.faq-item { border-bottom: 1px solid var(--c-border); scroll-margin-top: 88px; }
.faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::marker { content: ""; }
.faq-item summary h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  color: var(--c-text);
  line-height: 1.5;
}
.faq-item summary:hover h3 { color: var(--c-accent); }
.faq-chevron { flex-shrink: 0; color: var(--c-text-subtle); transition: transform var(--d-base) var(--ease-out); }
.faq-item[open] summary h3 { color: var(--c-primary); }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-body { padding: 0 0 20px; }
.faq-body p { margin: 0 0 var(--s-3); font-size: 15px; line-height: 1.8; color: var(--c-text-muted); }
.faq-permalink { font-size: 12px; color: var(--c-text-subtle); }
.faq-permalink:hover { color: var(--c-accent); }
.faq-more { text-align: center; margin: var(--s-8) 0 0; }
.faq-more a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-accent);
}
.table-wrap { overflow-x: auto; margin: 0 0 var(--s-3); -webkit-overflow-scrolling: touch; }
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 420px;
}
.table-wrap th, .table-wrap td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text-muted);
  vertical-align: top;
}
.table-wrap th { background: var(--c-bg-soft); color: var(--c-text); font-weight: 600; }

/* ----- CTA band ---------------------------------------------------------- */
.cta-band { background: var(--c-primary); color: #fff; padding: var(--s-16) 0; }
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-8);
  flex-wrap: wrap;
}
.cta-band-copy { max-width: 620px; }
.cta-band-copy h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); margin: 0 0 var(--s-3); }
.cta-band-copy p { margin: 0; color: rgba(255, 255, 255, 0.78); font-size: 15px; line-height: 1.7; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn-ghost.on-dark:hover { background: #fff; color: var(--c-primary); border-color: #fff; }

/* ----- Contact (form + channels) ----------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: var(--s-8);
  align-items: start;
}
.lead-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}
.lead-form .field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.lead-form .field-full { grid-column: 1 / -1; }
.lead-form label { font-size: 13px; font-weight: 600; color: var(--c-text); }
.lead-form .req { font-weight: 500; color: var(--c-text-subtle); }
.lead-form input,
.lead-form select,
.lead-form textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--c-text);
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-md);
  padding: 11px 12px;
  width: 100%;
  transition: border-color var(--d-fast) var(--ease-out), box-shadow var(--d-fast) var(--ease-out);
}
.lead-form textarea { resize: vertical; line-height: 1.6; }
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.12);
}
.lead-form .form-actions { margin: 0; }
.lead-form .form-note { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--c-text-subtle); }
.contact-channels { display: flex; flex-direction: column; gap: var(--s-4); }
.contact-channels .contact-item { margin: 0; }
.contact-channels .contact-item .ico { width: 40px; height: 40px; padding: 10px; flex-shrink: 0; border-radius: var(--r-sm); background: rgba(0, 82, 255, 0.10); color: var(--c-blue-600); }
@media (max-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lead-form { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .trust-metrics { gap: var(--s-6); }
}

/* ----- Reduced motion ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
  .hv-dot animateMotion { display: none; }
  .hv-dot { display: none; }
  .hv-agent .hv-trace:hover { transform: translate(-12px, -12px); }
  .hv-agent .hv-cite:hover { transform: translate(12px, 0); }
}

/* ----- Small-screen nav fit --------------------------------------------- */
/* zh wordmark must not wrap; en wordmark must not push the CTA / hamburger
   out of a 375-430px viewport, so below 480px the logo is the mark only. */
.logo-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.navbar .logo { min-width: 0; flex: 0 1 auto; overflow: hidden; padding-right: 12px; }
.navbar .logo img { flex-shrink: 0; }
.navbar .nav-actions { flex-shrink: 0; }
@media (max-width: 480px) {
  .navbar .container { padding: 0 var(--s-4); }
  .logo-text { display: none; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn-sm { padding: 0 12px; font-size: 13px; }
  .nav-actions .lang-switch { padding: 0 10px; }
}
.lead-form .form-actions { align-items: flex-start; }

/* Bento mid-card second line (first pain point) */
.bc-pain {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text-subtle);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 联系区：邮箱用途标签 */
.ci-label { display: inline-block; min-width: 4.5em; color: var(--c-text-muted); font-size: 13px; }

/* 留资表单提交后的提示 */
.lead-done { background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--s-6); }
.lead-done h3 { margin: 0 0 var(--s-2); color: var(--c-cited); }
.lead-done p { margin: 0 0 var(--s-3); color: var(--c-text-muted); line-height: 1.7; }
.lead-done .btn-secondary { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: var(--r-md); background: #fff; color: var(--c-primary); border: 1px solid var(--c-primary); font-weight: 600; text-decoration: none; }
.lead-done .btn-secondary:hover { background: var(--c-primary); color: #fff; }


/* ===== pages ===== */
/* ----- Container variant -------------------------------------------------- */
.container.narrow { max-width: 760px; }

/* ----- Service page: prose (markdown description) ------------------------ */
.prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.85;
  color: var(--c-text-muted);
}
.prose p { margin: 0 0 var(--s-4); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--c-text); font-weight: 600; }
/* 全局 reset 把 a 设成 color:inherit + text-decoration:none，正文里的链接因此完全看不出来。
   只在 .prose 正文里恢复可辨识的链接样式（按钮类 .btn-* 除外，它们自带样式）。 */
.prose a:not([class]) { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }
.prose a:not([class]):hover { color: var(--c-accent-hover); }

/* ----- Service page: pain points ------------------------------------------ */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.pain-grid li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-5) var(--s-6);
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text-muted);
}
.pain-grid .ico { flex-shrink: 0; margin-top: 2px; color: var(--c-danger); }
@media (max-width: 900px) { .pain-grid { grid-template-columns: 1fr; } }

/* ----- Service page: how we work (steps) ---------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
  counter-reset: svc-step;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  counter-increment: svc-step;
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-6) var(--s-6) var(--s-6) var(--s-8);
}
.steps li::before {
  content: counter(svc-step);
  position: absolute;
  left: var(--s-4);
  top: var(--s-5);
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.steps li { padding-left: calc(var(--s-8) + var(--s-4)); }
.steps h3 { font-size: 17px; margin: 0 0 var(--s-2); }
.steps p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--c-text-muted); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ----- Service page: deliverables ------------------------------------------ */
.deliverables {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.deliverables li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-5) var(--s-6);
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text-muted);
}
.deliverables .ico { flex-shrink: 0; margin-top: 2px; color: var(--c-success); }
@media (max-width: 768px) { .deliverables { grid-template-columns: 1fr; } }

/* ----- Service page: pricing tiers ----------------------------------------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
  margin: 0;
}
.tier {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  box-shadow: var(--sh-1);
}
.tier h3 { font-size: 18px; margin: 0 0 var(--s-3); }
.tier .price { font-size: 30px; font-weight: 700; color: var(--c-primary); margin: 0; }
.tier .period { font-size: 13px; color: var(--c-text-subtle); margin: 0 0 var(--s-5); }
.tier ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--s-2); }
.tier ul li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text-muted);
}
.tier ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-border-strong);
}
@media (max-width: 768px) { .tiers { grid-template-columns: 1fr; } }

/* ----- Service page: pricing "stages" mode --------------------------------- */
#pricing .stages { counter-reset: pstage; }
#pricing .stages li {
  counter-increment: pstage;
  position: relative;
  display: block;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-6) var(--s-6) var(--s-6) var(--s-12);
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text-muted);
}
#pricing .stages li::before {
  content: counter(pstage);
  position: absolute;
  left: var(--s-4);
  top: var(--s-5);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

/* ----- Service page: GEO diagnosis form (single column) -------------------- */
#diagnosis .lead-form { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
#diagnosis .lead-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--c-text); }
#diagnosis .lead-form p { text-align: center; color: var(--c-text-muted); margin: 0 0 var(--s-6); }
#diagnosis .container.narrow { text-align: center; }
#diagnosis .btn-primary { justify-self: center; }

/* ----- Page header (about, cases) --------------------------------------- */
.page-header {
  padding: var(--s-16) 0 var(--s-12);
  text-align: center;
  background: var(--c-bg);
  background-image: var(--grad-mesh);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(80% 60% at 50% 30%, #000 0%, transparent 75%);
          mask-image: radial-gradient(80% 60% at 50% 30%, #000 0%, transparent 75%);
  pointer-events: none;
}
.page-header .container { position: relative; }
.page-header h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin: var(--s-3) 0;
}
.page-header p {
  color: var(--c-text-muted);
  font-size: 17px;
  max-width: 580px;
  margin: 0 auto;
}

/* ----- About page -------------------------------------------------------- */
.about-intro {
  max-width: 820px;
  margin: 0 auto var(--s-12);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  font-size: 16px;
  line-height: 1.85;
  color: var(--c-text-muted);
  box-shadow: var(--sh-1);
}
.about-intro p { margin: 0; }
.about-intro strong { color: var(--c-primary); font-weight: 600; }
.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}
.feature-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  transition: transform var(--d-slow) var(--ease-spring),
              box-shadow var(--d-slow) var(--ease-out),
              border-color var(--d-base);
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--c-accent);
  box-shadow: var(--sh-3);
}
.feature-card::after {
  content: "";
  position: absolute;
  inset: auto -20px -20px auto;
  width: 140px; height: 140px;
  background: radial-gradient(circle at 100% 100%, rgba(0, 82, 255, 0.08), transparent 70%);
  pointer-events: none;
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(0, 82, 255, 0.12), rgba(77, 124, 255, 0.12));
  color: var(--c-blue-600);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: var(--s-5);
}
.feature-card h2 { font-size: 22px; margin-bottom: var(--s-3); }
.feature-card p { color: var(--c-text-muted); font-size: 15px; line-height: 1.7; margin: 0; }
@media (max-width: 768px) { .about-features { grid-template-columns: 1fr; } }


/* ----- Case library: category chips --------------------------------------- */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: 0 0 var(--s-8);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: var(--r-full);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-text-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--d-fast) var(--ease-out),
              border-color var(--d-fast) var(--ease-out),
              color var(--d-fast) var(--ease-out);
}
.chip .mono { font-size: 12px; color: var(--c-text-subtle); }
.chip:hover { border-color: var(--c-border-strong); color: var(--c-text); }
.chip:focus-visible { outline: 2px solid var(--c-blue-500); outline-offset: 2px; }
.chip.is-active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}
.chip.is-active .mono { color: rgba(255, 255, 255, 0.7); }

/* 窄屏：chip 变成可横向滚动的一条，右侧渐隐提示还有更多 */
@media (max-width: 640px) {
  .filter-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-right: var(--s-8);
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent 100%);
          mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent 100%);
  }
  .filter-chips::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }
}

/* ----- Case library: grid cells ------------------------------------------- */
.case-cell { display: flex; }
.case-cell > .case-card { flex: 1; }
.case-cell[hidden] { display: none; }
.case-cell.is-entering { animation: caseCellIn var(--d-base) var(--ease-out) both; }
@keyframes caseCellIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .case-cell.is-entering { animation: none; }
}

/* ----- Case detail: browser frame ----------------------------------------- */
.browser-frame {
  margin: 0;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-surface);
  box-shadow: var(--sh-2);
}
.bf-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 var(--s-3);
  background: var(--c-bg-soft);
  border-bottom: 1px solid var(--c-border);
}
.bf-bar > span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-border-strong);
  flex: 0 0 auto;
}
.bf-bar em {
  margin-left: var(--s-3);
  font-style: normal;
  font-size: 11px;
  color: var(--c-text-subtle);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.browser-frame img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--c-bg-soft);
}

/* ----- Case detail: layout ------------------------------------------------- */
.case-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-8);
  align-items: start;
}
.case-detail > .browser-frame,
.case-detail > .case-metrics,
.case-detail > .authorization { grid-column: 1 / -1; }
.case-body { max-width: none; margin: 0; }
@media (min-width: 1024px) {
  .case-detail { grid-template-columns: 280px minmax(0, 1fr); column-gap: var(--s-12); }
  .case-meta { position: sticky; top: 96px; }
}

/* ----- Case detail: meta list ---------------------------------------------- */
.case-meta {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}
.case-meta dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 2px; }
.case-meta dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-text-subtle);
}
.case-meta dd {
  margin: 0 0 var(--s-4);
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-text);
  word-break: break-word;
}
.case-meta dd:last-child { margin-bottom: 0; }
.case-meta dd a { color: var(--c-accent); }
.case-meta dd .ico { vertical-align: -2px; margin-left: 4px; color: var(--c-text-subtle); }
.case-meta .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s-5); }

/* ----- Case detail: body prose (markdown) ---------------------------------- */
.case-body h2 {
  font-size: 22px;
  margin: var(--s-10) 0 var(--s-4);
  color: var(--c-text);
  scroll-margin-top: 96px;
}
.case-body h2:first-child { margin-top: 0; }
.case-body h3 { font-size: 17px; margin: var(--s-6) 0 var(--s-3); color: var(--c-text); }
.case-body ul, .case-body ol { margin: 0 0 var(--s-4); padding-left: 1.35em; }
.case-body ul { list-style: disc; }
.case-body ol { list-style: decimal; }
.case-body li { margin-bottom: var(--s-2); }
.case-body li::marker { color: var(--c-border-strong); }
.case-body code {
  font-family: var(--f-mono);
  font-size: 0.9em;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 1px 5px;
}
.case-body table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 0 0 var(--s-6);
}
.case-body th, .case-body td {
  border: 1px solid var(--c-border);
  padding: var(--s-2) var(--s-4);
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
  white-space: normal;
}
.case-body th { background: var(--c-bg-soft); color: var(--c-text); font-weight: 600; }

/* ----- Entity table (company, about tech stack) ---------------------------- */
.entity-table th { width: 220px; }
@media (max-width: 640px) { .entity-table th { width: 40%; } }

/* ----- Insights list ------------------------------------------------------- */
.insight-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-8); }
.insight-list li { border-bottom: 1px solid var(--c-border); padding-bottom: var(--s-8); }
.insight-list li:last-child { border-bottom: none; }
.insight-list a { text-decoration: none; color: inherit; }
.insight-list a:hover h2 { color: var(--c-accent); }
.insight-list h2 { font-size: 21px; margin: 0 0 var(--s-2); }
.insight-meta { font-size: 13px; color: var(--c-text-subtle); margin: 0 0 var(--s-2); }
.insight-list li > p:last-child { color: var(--c-text-muted); margin: 0; }

/* ----- Empty state (insights, etc.) ----------------------------------------- */
.empty-state { text-align: center; color: var(--c-text-muted); font-size: 15px; padding: var(--s-16) 0; }

/* ----- About page: partners/clients evidence list --------------------------- */
.partners-evidence {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.partners-evidence li {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
}
.partners-evidence img { flex: 0 0 auto; width: 120px; height: 40px; object-fit: contain; }
.partners-evidence span { font-size: 14px; line-height: 1.6; color: var(--c-text-muted); }
@media (max-width: 640px) { .partners-evidence { grid-template-columns: 1fr; } }

/* ----- Case detail: authorization note ------------------------------------- */
.authorization {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0;
  padding: var(--s-3) var(--s-4);
  border: 1px dashed var(--c-border-strong);
  border-radius: var(--r-md);
  background: var(--c-bg-soft);
  font-size: 13px;
  color: var(--c-text-subtle);
}
.authorization .ico { flex: 0 0 auto; color: var(--c-text-subtle); }


/* ===== chat ===== */
/* ----- Chat widget ------------------------------------------------------- */
.chat-container {
  position: fixed;
  bottom: 84px;
  right: var(--s-6);
  z-index: 90;
}
.chat-toggle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  box-shadow: var(--sh-3);
  transition: transform var(--d-base) var(--ease-spring),
              box-shadow var(--d-base) var(--ease-out);
}
.chat-toggle:hover {
  transform: scale(1.06);
  box-shadow: var(--sh-4);
}
.chat-window {
  width: min(360px, calc(100vw - 32px));
  height: min(540px, calc(100dvh - 200px));
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: absolute;
  bottom: 72px;
  right: 0;
  transform-origin: bottom right;
  transition: transform var(--d-base) var(--ease-spring),
              opacity var(--d-base) var(--ease-out);
}
.chat-window.hidden {
  transform: scale(0.95) translateY(8px);
  opacity: 0;
  pointer-events: none;
}
.chat-header {
  background: var(--c-primary);
  color: #fff;
  padding: var(--s-4) var(--s-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-header h3 {
  color: #fff;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.chat-header h3 i { color: #4D7CFF; }
.close-chat {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  border: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--d-fast);
}
.close-chat:hover { background: rgba(255, 255, 255, 0.20); }
.chat-messages {
  flex: 1;
  padding: var(--s-4);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  background: var(--c-bg-soft);
}
.chat-message {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 14px;
  line-height: 1.55;
}
.chat-message p { margin: 0; }
.assistant-message {
  background: #fff;
  color: var(--c-primary);
  border: 1px solid var(--c-border);
  align-self: flex-start;
  border-top-left-radius: 4px;
}
.user-message {
  background: var(--grad-cta);
  color: #fff;
  align-self: flex-end;
  border-top-right-radius: 4px;
}
.quick-questions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: var(--s-2);
}
.quick-question-btn {
  text-align: left;
  font-size: 13px;
  padding: 9px 12px;
  background: #fff;
  border: 1px solid var(--c-border);
  color: var(--c-primary);
  border-radius: var(--r-sm);
  transition: all var(--d-fast) var(--ease-out);
  cursor: pointer;
  font-family: inherit;
}
.quick-question-btn:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  background: rgba(3, 105, 161, 0.04);
}
.chat-input-container {
  display: flex;
  gap: 8px;
  padding: var(--s-3);
  background: #fff;
  border-top: 1px solid var(--c-border);
}
#chat-input {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color var(--d-fast);
}
#chat-input:focus { border-color: var(--c-accent); }
#send-message {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: var(--grad-cta);
  color: #fff;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--d-fast) var(--ease-spring);
}
#send-message:hover { transform: scale(1.05); }

.chat-footer-note {
  font-size: 11px;
  color: var(--c-text-subtle);
  text-align: center;
  padding: 6px 12px 10px;
  margin: 0;
  border-top: 1px solid var(--c-border);
  background: #fff;
  flex-shrink: 0;
}

/* Chat: thinking indicator */
.thinking-text { display: flex; align-items: center; gap: 8px; }
.thinking-main { color: var(--c-text-muted); font-size: 13px; }
.thinking { display: inline-flex; gap: 4px; }
.thinking span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-accent);
  animation: dot-blink 1.2s ease-in-out infinite;
}
.thinking span:nth-child(2) { animation-delay: 0.15s; }
.thinking span:nth-child(3) { animation-delay: 0.30s; }
@keyframes dot-blink {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}
.thinking-timer { font-size: 11px; color: var(--c-text-subtle); }

