/* LynxceAI global site — brand tokens follow ai.lynxce.cn (violet → blue → cyan). */
:root {
  --b1: #7b61ff;
  --b2: #3b82f6;
  --b3: #22d3ee;
  --grad: linear-gradient(115deg, #7b61ff 0%, #3b82f6 52%, #22d3ee 100%);
  --grad-soft: linear-gradient(135deg, rgba(123, 97, 255, .12), rgba(59, 130, 246, .10) 55%, rgba(34, 211, 238, .12));

  --bg: #fafbfc;
  --bg-tint: #f4f6fb;
  --surface: #ffffff;
  --art-surface: #f7f8fc;
  --ink: #12141c;
  --ink-2: #3c4250;
  --muted: #5d6474;
  --line: #e6e9f2;
  --chip: #ffffff;
  --dark: #0b0c14;
  --dark-2: #141727;
  --dark-ink: #eef0f8;
  --dark-muted: #a3a9bd;

  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(18, 22, 40, .05), 0 1px 3px rgba(18, 22, 40, .04);
  --shadow-md: 0 10px 30px rgba(18, 22, 40, .07), 0 2px 6px rgba(18, 22, 40, .04);
  --shadow-glow: 0 18px 50px rgba(99, 102, 241, .28);
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font-en: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "SF Pro Text", system-ui, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-zh: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c14;
    --bg-tint: #10121d;
    --surface: #151827;
    --art-surface: #eef1f8;
    --ink: #eef0f8;
    --ink-2: #c9cde0;
    --muted: #a3a9bd;
    --line: #262a3e;
    --chip: #171a2b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 12px 34px rgba(0, 0, 0, .45);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-en);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[data-lang="zh"] body { font-family: var(--font-zh); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.18; letter-spacing: -0.02em; color: var(--ink); }
html[data-lang="zh"] h1, html[data-lang="zh"] h2, html[data-lang="zh"] h3 { letter-spacing: 0; line-height: 1.3; }
p { margin: 0; }

/* Bilingual text: both languages ship in the page; only the active one shows. */
html[data-lang="en"] body [lang="zh-CN"],
html[data-lang="zh"] body [lang="en"] { display: none !important; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--b2); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 251, 252, .88);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-weight: 750; font-size: 19px; letter-spacing: -0.01em; }
.brand-cn { font-family: var(--font-zh); font-size: 14px; color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line); }
.primary-nav { display: flex; gap: 26px; margin-left: auto; }
.primary-nav a { text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 550; }
.primary-nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  font: inherit; font-size: 14px; font-weight: 650; color: var(--ink-2);
  background: var(--chip); border: 1px solid var(--line); border-radius: 999px;
  min-width: 56px; height: 38px; padding: 0 14px; cursor: pointer;
}
.lang-toggle:hover { color: var(--ink); border-color: color-mix(in srgb, var(--b2) 40%, var(--line)); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font-weight: 650; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-primary { color: #fff; background: var(--grad); box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 22px 56px rgba(99, 102, 241, .36); }
.btn-ghost { color: var(--ink); background: var(--surface); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--b2) 45%, var(--line)); transform: translateY(-1px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--b2); margin-bottom: 16px;
}
html[data-lang="zh"] .eyebrow { letter-spacing: .12em; }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--b2);
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: 40px 0 72px; }
.hero-glow {
  position: absolute; inset: -30% -10% auto 30%; height: 720px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(123, 97, 255, .16), transparent 70%),
              radial-gradient(closest-side at 70% 60%, rgba(34, 211, 238, .14), transparent 70%);
  filter: blur(10px);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
.hero-copy { position: relative; z-index: 2; padding: 32px 0; }
.hero h1 { font-size: clamp(40px, 5.4vw, 66px); font-weight: 800; }
html[data-lang="zh"] .hero h1 { font-size: clamp(38px, 5vw, 60px); }
.hero h1 .grad-text { display: inline; }
.lead { margin-top: 22px; font-size: 19px; color: var(--ink-2); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta-row.center { justify-content: center; }
.hero-art { margin-left: -22%; position: relative; z-index: 1; }
.hero-art img { width: 100%; border-radius: var(--r-xl); }
@media (prefers-color-scheme: dark) {
  .hero-art img { box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
  .site-header { background: rgba(11, 12, 20, .88); background: color-mix(in srgb, var(--bg) 82%, transparent); }
}

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 28px 0 0; }
.chips li {
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  background: var(--chip); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
  box-shadow: var(--shadow-sm);
}
.chips-soft li { background: var(--grad-soft); border-color: transparent; box-shadow: none; color: var(--ink); }
.chips-small li { font-size: 13px; padding: 5px 12px; }

/* Sections */
.section { padding: 104px 0; }
.section-tint { background: var(--bg-tint); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }
h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 780; }
.section-lead { margin-top: 18px; font-size: 18px; color: var(--muted); }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.prose p { color: var(--ink-2); font-size: 18px; }
.prose p + p { margin-top: 18px; }
.industries { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.industries-label { font-size: 14px; font-weight: 650; color: var(--muted); }
.industries .chips { margin-top: 12px; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pillar {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 18px 18px 28px; box-shadow: var(--shadow-md);
}
.pillar-art { background: var(--art-surface); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 22px; }
.pillar-art img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.pillar-tag, .pillar h3, .pillar > p, .pillar .checks, .pillar .chips { margin-inline: 8px; }
.pillar-tag { font-size: 13px; font-weight: 700; color: var(--b2); letter-spacing: .04em; }
.pillar h3 { font-size: 23px; font-weight: 760; margin-top: 6px; }
.pillar > p { margin-top: 12px; color: var(--ink-2); font-size: 16px; }
.checks { list-style: none; padding: 0; margin-top: 18px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; font-size: 15px; font-weight: 550; color: var(--ink); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat, var(--grad);
}
.pillar .chips { margin-top: 18px; }

/* Values */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.value { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 32px; box-shadow: var(--shadow-sm); }
.value-icon { width: 48px; height: 48px; padding: 11px; border-radius: 14px; color: #fff; background: var(--grad); box-shadow: var(--shadow-glow); }
.value h3 { font-size: 22px; font-weight: 760; margin-top: 22px; }
.value p { margin-top: 12px; color: var(--ink-2); font-size: 16px; }

/* Approach (dark band) */
.section-dark { background: radial-gradient(1200px 500px at 15% 0%, rgba(123, 97, 255, .22), transparent 60%), radial-gradient(900px 500px at 100% 100%, rgba(34, 211, 238, .14), transparent 60%), var(--dark); color: var(--dark-ink); }
.section-dark h2, .section-dark h3 { color: var(--dark-ink); }
.section-dark .eyebrow { color: #8fb4ff; }
.approach { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.approach li { border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); border-radius: var(--r-xl); padding: 32px; }
.approach-num { font-size: 15px; font-weight: 800; letter-spacing: .08em; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.approach h3 { font-size: 22px; font-weight: 760; margin-top: 14px; }
.approach p { margin-top: 12px; color: var(--dark-muted); font-size: 16px; }

/* CTA + contact */
.cta-card {
  text-align: center; padding: 72px 40px; border-radius: 36px;
  background: var(--grad-soft), var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.cta-card h2 { max-width: 760px; margin-inline: auto; }
.cta-card .section-lead { max-width: 640px; margin-inline: auto; }
.contact-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 48px; margin: 40px 0 0; }
.contact-list div { text-align: center; }
.contact-list dt { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.contact-list dd { margin: 4px 0 0; font-size: 18px; font-weight: 650; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: center; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-name { font-weight: 700; }
.footer-tag, .footer-legal { font-size: 14px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { text-decoration: none; font-size: 15px; color: var(--ink-2); }
.footer-links a:hover { color: var(--ink); }
.footer-legal { grid-column: 1 / -1; }

/* Reveal on scroll (only when JS runs and motion is welcome) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn-primary:hover, .btn-ghost:hover { transition: none; transform: none; }
}

/* Responsive */
@media (max-width: 1020px) {
  .pillars, .values, .approach { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 900px) {
  .hero { padding-top: 16px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 8px; }
  .hero-art { margin-left: 0; margin-top: 16px; }
  .hero-art img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 72% 50%; }
  .primary-nav { display: none; }
  .header-actions { margin-left: auto; }
  .section { padding: 76px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .brand-cn { display: none; }
  .lead, .prose p, .section-lead { font-size: 17px; }
  .cta-row .btn { flex: 1 1 100%; }
  .cta-card { padding: 48px 20px; border-radius: 28px; }
  .footer-inner { grid-template-columns: 1fr; }
  .value, .approach li { padding: 26px; }
}

/* 404 */
.notfound-mark { margin: 0 auto 24px; }
.cta-card h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; }
.lang-toggle-big { font: inherit; font-weight: 650; cursor: pointer; }

/* Blend the hero art into the page in light mode; dark mode keeps it as a framed card. */
@media (prefers-color-scheme: light) {
  .hero-art img {
    -webkit-mask-image: radial-gradient(ellipse 72% 68% at 58% 50%, #000 62%, transparent 100%);
    mask-image: radial-gradient(ellipse 72% 68% at 58% 50%, #000 62%, transparent 100%);
  }
}

/* Dark mode: the light hero art sits beside the headline as a framed card, cropped to its subject. */
@media (prefers-color-scheme: dark) and (min-width: 901px) {
  .hero-grid { gap: 40px; }
  .hero-art { margin-left: 0; }
  .hero-art img { aspect-ratio: 5 / 4; object-fit: cover; object-position: 78% 50%; }
}
