/* Ever Viva — site styles. No external fonts or frameworks. */

:root {
  --ink: #0a1020;
  --ink-2: #0f172a;
  --text: #0f172a;
  --body: #334155;
  --muted: #475569;
  --subtle: #5b6b82;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --brand: #0f766e;
  --brand-2: #4338ca;
  --teal-light: #5eead4;
  --indigo-light: #a5b4fc;
  --danger: #b91c1c;
  --grad: linear-gradient(135deg, #14b8a6 0%, #6366f1 100%);
  --grad-strong: linear-gradient(135deg, #0f766e 0%, #4338ca 100%);
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-hover: 0 2px 4px rgba(15, 23, 42, .05), 0 18px 40px rgba(15, 23, 42, .10);
  --shadow-lg: 0 30px 70px rgba(2, 6, 23, .45);
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial,
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-zh: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
             "Segoe UI", Roboto, sans-serif;
  --container: 1180px;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html[lang^="zh"] body { font-family: var(--font-zh); line-height: 1.8; }
html[lang^="zh"] p, html[lang^="zh"] li { text-wrap: pretty; } /* avoid one-character last lines */
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-2); }
h1, h2, h3 { color: var(--text); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.02em; text-wrap: balance; }
html[lang^="zh"] h1, html[lang^="zh"] h2, html[lang^="zh"] h3 { letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(2.15rem, 5vw, 3.55rem); font-weight: 750; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); font-weight: 720; }
h3 { font-size: 1.2rem; font-weight: 680; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; }
[hidden] { display: none !important; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid #0f766e; outline-offset: 2px; border-radius: 4px; }
.site-header :focus-visible, .hero :focus-visible, .section-dark :focus-visible, .cta-band :focus-visible,
.mission :focus-visible, .site-footer :focus-visible, .lang-banner :focus-visible { outline-color: #5eead4; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }
.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;
}
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 650;
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; }
.icon { width: 1em; height: 1em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2;
  padding: 14px 24px; border-radius: 12px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary { color: #fff; background: var(--grad-strong); box-shadow: 0 8px 22px rgba(67, 56, 202, .28); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 30px rgba(67, 56, 202, .38); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .05); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.btn-sm { padding: 10px 16px; font-size: .93rem; border-radius: 10px; }
.btn-block { width: 100%; margin-top: 24px; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 16, 32, .9);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 750; font-size: 1.22rem; letter-spacing: -.01em; }
.brand:hover { color: #fff; }
.brand img { width: 34px; height: 34px; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav ul { display: flex; gap: 26px; list-style: none; padding: 0; }
.site-nav ul a { position: relative; display: block; color: #cbd5e1; text-decoration: none; font-weight: 560; font-size: .97rem; padding: 6px 0; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { color: #fff; }
.site-nav ul a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px; background: var(--grad);
}
.lang-switch {
  display: inline-flex; align-items: center; gap: 7px; color: #e2e8f0; text-decoration: none;
  font-weight: 650; font-size: .92rem; padding: 7px 13px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px;
}
.lang-switch:hover { color: #fff; border-color: rgba(255, 255, 255, .45); }
.lang-switch .icon { width: 16px; height: 16px; }
.nav-toggle {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px; cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .i-close, .nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 14px;
    padding: 12px 20px 24px; background: var(--ink); border-bottom: 1px solid rgba(255, 255, 255, .08);
    max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  body.nav-open .site-nav { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { padding: 13px 4px; font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .site-nav ul a[aria-current="page"]::after { display: none; }
  .site-nav ul a[aria-current="page"] { color: var(--teal-light); }
  .lang-switch { justify-content: center; padding: 11px; }
  .site-nav .btn { padding: 13px; }
}
html[lang^="zh"] .site-nav ul a, html[lang^="zh"] .chips li, html[lang^="zh"] .subnav a { font-weight: 500; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); color: #cbd5e1; padding: 96px 0 104px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(620px 420px at 10% 0%, rgba(45, 212, 191, .22), transparent 62%),
    radial-gradient(720px 520px at 92% 25%, rgba(99, 102, 241, .30), transparent 62%),
    radial-gradient(520px 300px at 45% 115%, rgba(45, 212, 191, .14), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 20%, #000 25%, transparent 75%);
}
.hero h1 { color: #fff; }
.hero .lead { color: #cbd5e1; }
.hl { white-space: nowrap; background: linear-gradient(90deg, var(--teal-light), var(--indigo-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[lang^="zh"] .hero .hl { display: block; width: fit-content; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; padding: 0; margin-top: 30px; color: #94a3b8; font-size: .95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { width: 18px; height: 18px; color: var(--teal-light); }
@media (max-width: 1000px) {
  .hero { padding: 72px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px;
  font-size: .8rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--brand);
}
html[lang^="zh"] .eyebrow { letter-spacing: .12em; font-size: .85rem; }
.eyebrow .icon { width: 15px; height: 15px; }
.eyebrow-pill { padding: 6px 13px; border-radius: 999px; color: var(--teal-light); background: rgba(45, 212, 191, .1); border: 1px solid rgba(45, 212, 191, .28); }
.lead { font-size: 1.16rem; color: var(--muted); max-width: 660px; }
html[lang^="zh"] .lead { font-size: 1.1rem; }

/* Hero visual: AI workflow card */
.flow-card {
  position: relative; padding: 20px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .13); box-shadow: var(--shadow-lg);
}
.flow-card::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: 21px;
  background: linear-gradient(135deg, rgba(45, 212, 191, .5), transparent 40%, transparent 60%, rgba(99, 102, 241, .55));
  filter: blur(18px); opacity: .45;
}
.flow-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 4px 16px; margin-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.flow-title { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 650; font-size: .95rem; }
.flow-title img { width: 24px; height: 24px; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 650; color: var(--teal-light); }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2dd4bf; animation: pulse 2.2s infinite; }
.flow-steps { list-style: none; padding: 0; display: grid; gap: 10px; }
.flow-step {
  display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; padding: 13px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .07);
  animation: rise .55s ease both;
}
.flow-step:nth-child(2) { animation-delay: .2s; }
.flow-step:nth-child(3) { animation-delay: .4s; }
.flow-step:nth-child(4) { animation-delay: .6s; }
.flow-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(99, 102, 241, .2); color: var(--indigo-light); }
.flow-ico .icon { width: 20px; height: 20px; }
.flow-step b { display: block; color: #f1f5f9; font-weight: 620; font-size: .97rem; line-height: 1.4; }
.flow-step small { display: block; color: #94a3b8; font-size: .86rem; line-height: 1.45; margin-top: 3px; }
.flow-step.done { background: linear-gradient(135deg, rgba(20, 184, 166, .2), rgba(99, 102, 241, .16)); border-color: rgba(45, 212, 191, .32); }
.flow-step.done .flow-ico { background: rgba(45, 212, 191, .22); color: var(--teal-light); }
.flow-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding: 12px 4px 0; color: #94a3b8; font-size: .86rem; }
.flow-foot > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.flow-foot .icon { width: 16px; height: 16px; color: var(--teal-light); }
.switch-on { display: inline-flex; align-items: center; gap: 8px; color: var(--teal-light); font-weight: 650; }
.switch-on::after { content: ""; width: 30px; height: 18px; border-radius: 999px; background: #14b8a6 radial-gradient(circle at 21px 9px, #fff 6px, transparent 6.5px); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(45, 212, 191, .55); } 70% { box-shadow: 0 0 0 10px rgba(45, 212, 191, 0); } 100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Integrations strip */
.logos { padding: 30px 0 34px; background: #fff; border-bottom: 1px solid var(--line); }
.logos-label { text-align: center; color: var(--subtle); font-size: .9rem; font-weight: 600; margin-bottom: 14px; }
.logos-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; list-style: none; padding: 0; }
.logos-list li { color: #64748b; font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
@media (max-width: 700px) { .section { padding: 64px 0; } }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 760px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; text-wrap: balance; }
.section-head .lead { margin-bottom: 0; }
.label { font-size: .8rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--subtle); margin: 28px 0 14px; }
html[lang^="zh"] .label { font-size: .88rem; letter-spacing: .1em; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--line-strong); }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); margin: 0; }
.icon-tile {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; flex: none;
  color: #fff; background: var(--grad); margin-bottom: 20px; box-shadow: 0 8px 18px rgba(99, 102, 241, .25);
}
.icon-tile .icon { width: 24px; height: 24px; }
.icon-tile.soft { color: var(--brand); background: #e6f7f5; box-shadow: none; }

.sol-card { display: flex; flex-direction: column; padding: 32px; }
.sol-card ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 9px; }
.sol-card li { display: flex; gap: 10px; align-items: flex-start; color: var(--body); font-size: .98rem; }
.sol-card li .icon { width: 18px; height: 18px; margin-top: .3em; color: var(--brand); }
.more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; font-weight: 650; text-decoration: none; }
.more .icon { width: 16px; height: 16px; transition: transform .15s ease; }
.more:hover .icon { transform: translateX(3px); }

/* Process steps */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.steps::before { content: ""; position: absolute; top: 26px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, #99f6e4, #c7d2fe); }
.step { position: relative; text-align: center; padding: 0 4px; }
.step-num {
  position: relative; width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 2px solid #c7d2fe; color: var(--brand-2); font-weight: 750; font-size: 1.1rem; box-shadow: var(--shadow);
}
.step h3 { font-size: 1.12rem; margin-bottom: .35em; }
.step p { color: var(--muted); font-size: .96rem; margin: 0; }
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr; gap: 0; max-width: 620px; margin: 0 auto; }
  .steps::before { top: 8px; bottom: 30px; left: 26px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, #99f6e4, #c7d2fe); }
  .step { display: grid; grid-template-columns: 54px 1fr; gap: 18px; text-align: left; padding: 0 0 26px; }
  .step-num { margin: 0; }
  .step h3 { margin-top: 12px; }
}

/* Dark section */
.section-dark { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: #cbd5e1; }
.section-dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(600px 360px at 15% 10%, rgba(45, 212, 191, .14), transparent 65%),
              radial-gradient(640px 400px at 90% 90%, rgba(99, 102, 241, .2), transparent 65%);
}
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: var(--teal-light); }
.card-dark { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); box-shadow: none; }
.card-dark:hover { border-color: rgba(255, 255, 255, .22); box-shadow: none; }
.card-dark h3 { color: #fff; }
.card-dark p { color: #a8b3c4; }

/* Industries */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; list-style: none; padding: 0; max-width: 940px; margin: 0 auto; }
.chips li { padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--body); font-weight: 600; font-size: .97rem; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
@media (max-width: 600px) { .chips { gap: 8px; } .chips li { padding: 7px 12px; font-size: .85rem; } }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 24px; transition: border-color .2s ease; }
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow); }
.faq summary { position: relative; cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 650; font-size: 1.05rem; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--subtle); border-bottom: 2px solid var(--subtle);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p { color: var(--muted); margin: 0 0 22px; }

/* CTA band */
.section-cta { padding-top: 0; }
.section-soft + .section-cta, .section-cta.after-soft { background: var(--bg-soft); }
.section-soft + .section-soft { padding-top: 0; }
.cta-band {
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  padding: 56px; border-radius: 24px; background: var(--ink); color: #cbd5e1;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(500px 300px at 0% 0%, rgba(45, 212, 191, .25), transparent 65%),
              radial-gradient(520px 320px at 100% 100%, rgba(99, 102, 241, .35), transparent 65%);
}
.cta-band h2 { color: #fff; margin-bottom: .35em; }
.cta-band p { margin: 0; max-width: 640px; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; padding: 40px 26px; } .cta-band .btn { justify-self: start; } }

/* ---------- Inner pages ---------- */
.page-hero { padding: 84px 0 76px; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 860px; }
.page-hero-short { padding: 72px 0 64px; }
.subnav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.subnav a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px;
  color: #e2e8f0; text-decoration: none; font-weight: 600; font-size: .93rem;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .04);
}
.subnav a:hover { color: #fff; border-color: rgba(255, 255, 255, .4); }
.subnav .icon { width: 16px; height: 16px; color: var(--teal-light); }

.sol-detail { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: start; }
.sol-title { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.sol-title .icon-tile { margin: 0; }
.sol-title h2 { margin: 0; }
.checklist { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.checklist li { display: flex; gap: 11px; align-items: flex-start; color: var(--body); }
.checklist .icon { width: 20px; height: 20px; margin-top: .22em; color: var(--brand); }
.side-card { position: sticky; top: calc(var(--header-h) + 24px); background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 8px 28px 28px; box-shadow: var(--shadow); }
.side-card .label:first-child { margin-top: 22px; }
.gains { list-style: none; padding: 0; display: grid; gap: 12px; }
.gains li { display: flex; gap: 11px; align-items: flex-start; font-weight: 620; color: var(--text); }
.gains .icon { width: 20px; height: 20px; margin-top: .2em; color: var(--brand-2); }
.example { margin: 0; padding: 18px 20px; border-radius: 12px; background: var(--bg-soft); border-left: 3px solid #14b8a6; color: var(--body); font-size: .97rem; }
@media (max-width: 980px) { .sol-detail { grid-template-columns: 1fr; gap: 32px; } .side-card { position: static; } }
@media (max-width: 700px) { .checklist { grid-template-columns: 1fr; } }

.assess { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 40px; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.assess .icon-tile { margin: 0; width: 60px; height: 60px; }
.assess h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: .3em; }
.assess p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .assess { grid-template-columns: 1fr; padding: 30px 24px; } .assess .btn { justify-self: start; } }

.story { display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: start; }
.story p { font-size: 1.1em; }
.mission { position: relative; isolation: isolate; overflow: hidden; padding: 36px; border-radius: 20px; background: var(--ink); color: #cbd5e1; }
.mission::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(400px 260px at 100% 0%, rgba(99, 102, 241, .4), transparent 65%), radial-gradient(300px 220px at 0% 100%, rgba(45, 212, 191, .25), transparent 65%); }
.mission h3 { color: var(--teal-light); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.mission p { color: #fff; font-size: 1.32rem; line-height: 1.5; font-weight: 600; margin: 0; }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Contact ---------- */
.contact-section { padding-top: 72px; }
.contact-grid { display: grid; grid-template-columns: 1.45fr .85fr; gap: 36px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 36px; box-shadow: var(--shadow); }
.form-title { font-size: 1.5rem; margin-bottom: .25em; }
.form-note { color: var(--subtle); font-size: .92rem; margin-bottom: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field > label { font-weight: 620; font-size: .95rem; color: var(--text); }
.opt { font-weight: 500; color: var(--subtle); font-size: .86rem; }
.req { color: var(--danger); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; line-height: 1.5; color: var(--text); background: #fff;
  border: 1px solid #8492a6; border-radius: 10px; padding: 11px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 150px; resize: vertical; }
select {
  -webkit-appearance: none; appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
input::placeholder, textarea::placeholder { color: #64748b; }
input:focus, select:focus, textarea:focus { outline: 2px solid #0f766e; outline-offset: 1px; border-color: #0f766e; box-shadow: none; }
select:focus, textarea:focus { border-radius: 10px; } /* keep the corners the global :focus-visible rule would square */
[aria-invalid="true"] { border-color: #dc2626 !important; }
[aria-invalid="true"]:focus { outline-color: #b91c1c; box-shadow: none; }
.field-error { margin: 0; color: var(--danger); font-size: .88rem; }
.field-error:empty { display: none; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--body); cursor: pointer; }
.field > label.consent { font-weight: 400; color: var(--body); }
.consent input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--brand); cursor: pointer; }
.hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-bottom: 20px; padding: 13px 16px; border-radius: 12px; font-weight: 560; font-size: .97rem; }
.form-status.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
/* No-JS fallback: the API redirects to /contact/?error=1#contact. site.js removes this element. */
.form-status-nojs { display: none; }
.form-card:target .form-status-nojs { display: block; }
.form-success { text-align: center; padding: 36px 8px; }
.form-success:focus { outline: none; }
.form-success .icon-tile { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; }
.form-success .icon-tile .icon { width: 30px; height: 30px; }
.form-success h2 { font-size: 1.6rem; }
.form-success p { color: var(--muted); margin: 0; }
.contact-aside { display: grid; gap: 18px; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.aside-card h2 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin-bottom: 16px; }
.aside-card h2 .icon { width: 20px; height: 20px; color: var(--brand); }
.aside-card p { margin: 0; color: var(--muted); }
.next-steps { list-style: none; padding: 0; counter-reset: n; display: grid; gap: 16px; }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; color: var(--body); font-size: .97rem; }
.next-steps li::before {
  content: counter(n); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: #eef2ff; color: var(--brand-2); font-weight: 750; font-size: .9rem;
}
.direct { list-style: none; padding: 0; display: grid; gap: 12px; }
.direct li { display: flex; align-items: center; gap: 10px; }
.direct .icon { width: 18px; height: 18px; color: var(--brand); }
.privacy-note { display: flex; align-items: center; gap: 9px; margin: 0; padding: 0 6px; color: var(--subtle); font-size: .9rem; }
.privacy-note .icon { width: 16px; height: 16px; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 26px 18px; } .contact-section { padding-top: 40px; } }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 1.35rem; margin: 2em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--body); }
.prose .note { padding: 14px 18px; border-radius: 12px; background: var(--bg-soft); border-left: 3px solid #14b8a6; color: var(--muted); font-size: .95rem; }

/* ---------- Message pages (thanks / 404) ---------- */
.message-hero { min-height: calc(100vh - var(--header-h) - 260px); display: flex; align-items: center; }
.message { text-align: center; }
.message h1 { margin-left: auto; margin-right: auto; }
.message .icon-tile { width: 64px; height: 64px; margin: 0 auto 24px; border-radius: 50%; }
.message .icon-tile .icon { width: 30px; height: 30px; }
.message .lead { margin: 0 auto 32px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #94a3b8; padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-brand p { max-width: 380px; margin-top: 16px; }
.site-footer h2 { color: #fff; font-size: .95rem; font-weight: 700; letter-spacing: .02em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .88rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; }
  .site-footer ul { gap: 0; }
  .site-footer ul a, .footer-bottom a { display: inline-block; padding: 12px 0; }
}

/* ---------- Language suggestion ---------- */
.lang-banner {
  position: fixed; left: 50%; bottom: 20px; z-index: 60; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100% - 32px);
  padding: 10px 10px 10px 18px; border-radius: 14px; font-size: .95rem;
  background: var(--ink-2); color: #e2e8f0; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 18px 40px rgba(2, 6, 23, .35);
  font-family: var(--font-zh);
}
.lang-banner a { color: var(--teal-light); font-weight: 650; }
/* 44px tap target; the negative margin keeps the banner's 34px layout footprint. */
.lang-banner button { display: grid; place-items: center; width: 44px; height: 44px; margin: -5px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #94a3b8; cursor: pointer; }
.lang-banner button:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.lang-banner .icon { width: 18px; height: 18px; }
@media (max-width: 520px) { .lang-banner { flex-wrap: wrap; gap: 6px 12px; } }
/* Keep the page end and focused elements clear of the banner while it is shown (set by site.js). */
html.has-lang-banner { scroll-padding-bottom: 120px; }
html.has-lang-banner .site-footer { padding-bottom: 120px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .site-header, .site-footer, .lang-banner, .hero::before, .hero::after { display: none !important; }
  .hero { background: none; color: #000; padding: 24px 0; }
  .hero h1, .hero .lead { color: #000; }
}
