/* ==========================================================================
   Alphaedu — main stylesheet
   Palette: night violet + purple gradient (indigo → violet → orchid) + signal cyan
   Type: Comfortaa everywhere (variable 300–700), same stack as the SDP product site
   ========================================================================== */

:root {
  --night: #120a2e;
  --night-2: #1b1150;
  --night-3: #261868;
  --indigo: #4b3bff;
  --violet: #8b3dff;
  --orchid: #e34bff;
  --signal: #7fe6ff;
  --mist: #f4f1ff;
  --mist-2: #e8e1ff;
  --ink: #1a1040;
  --ink-2: #4b4372;
  --white: #ffffff;
  --grad: linear-gradient(115deg, #4b3bff 0%, #8b3dff 48%, #e34bff 100%);
  --grad-soft: linear-gradient(115deg, rgba(75, 59, 255, .16), rgba(227, 75, 255, .16));
  --line-d: rgba(255, 255, 255, .14);
  --line-l: rgba(26, 16, 64, .12);
  --text-d: rgba(255, 255, 255, .72);
  --text-l: #4b4372;

  --f-display: 'Comfortaa', 'SF Pro Display', 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --f-text: 'Comfortaa', 'SF Pro Display', 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1360px;
  --nav-h: 76px;

  /* type scale (perfect fourth, 18px base) */
  --t-xs: .8125rem;
  --t-s: .9375rem;
  --t-m: 1.0625rem;
  --t-l: 1.3125rem;
  --t-xl: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
  --t-2xl: clamp(1.75rem, min(1.2rem + 2.6vw, 5.6vh), 3.25rem);
  --t-3xl: clamp(2rem, min(1.2rem + 4.2vw, 7.4vh), 4.75rem);
  --t-hero: clamp(3.1rem, min(.6rem + 9.6vw, 17vh), 11.5rem);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: #0b0926;
  color: var(--white);
  font-family: var(--f-text);
  font-size: var(--t-m);
  line-height: 1.65;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.02;
}
.h2 {
  font-family: var(--f-display);
  font-size: var(--t-3xl);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--f-display);
  font-size: var(--t-xl);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.lead { font-size: var(--t-l); line-height: 1.55; max-width: 38ch; color: var(--text-d); }
.body { color: var(--text-d); max-width: 52ch; }
.sec--light .lead, .sec--light .body { color: var(--text-l); }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.small { font-size: var(--t-xs); color: var(--text-d); }
.sec--light .small { color: var(--text-l); }

html[lang="zh"] .display,
html[lang="zh"] .h2,
html[lang="zh"] .h3 { letter-spacing: 0; line-height: 1.22; font-weight: 600; }
html[lang="zh"] .lead, html[lang="zh"] .body { line-height: 1.8; }
html[lang="zh"] body { line-height: 1.75; }

/* line-mask reveal (JS splits into .line > .line__in) */
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line__in { display: block; will-change: transform; }

/* ---------- sections ---------- */
.sec { position: relative; z-index: 2; padding-block: clamp(96px, 14vh, 180px); }
.sec--dark { color: var(--white); }
.sec--light { background: var(--mist); color: var(--ink); }
.sec--light ::selection { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  --h: 54px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .7em;
  height: var(--h);
  padding: 0 1.6em;
  border-radius: 999px;
  font-family: var(--f-text);
  font-weight: 700;
  font-size: var(--t-s);
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), background-color .3s;
}
.btn__label { position: relative; z-index: 2; display: inline-block; }
.btn--primary { color: #fff; background: var(--grad); box-shadow: 0 10px 40px -10px rgba(139, 61, 255, .8); }
.btn--primary::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, #e34bff, #8b3dff 50%, #4b3bff);
  opacity: 0; transition: opacity .5s var(--ease-out); z-index: 1;
}
.btn--primary::after {
  content: "";
  position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg); z-index: 1;
  transition: left .9s var(--ease-out);
}
.btn--primary:hover::before { opacity: 1; }
.btn--primary:hover::after { left: 130%; }
.btn--primary:hover { box-shadow: 0 16px 50px -10px rgba(227, 75, 255, .85); }
.btn--ghost { color: inherit; border: 1px solid currentColor; border-color: var(--line-d); background: rgba(255, 255, 255, .04); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); }
.sec--light .btn--ghost { border-color: var(--line-l); background: rgba(255, 255, 255, .5); }
.btn--sm { --h: 42px; padding: 0 1.2em; font-size: var(--t-xs); }
.btn__icon { width: 18px; height: 18px; position: relative; z-index: 2; transition: transform .5s var(--ease-out); }
.btn:hover .btn__icon { transform: translateX(3px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  transition: transform .6s var(--ease-out), background-color .4s, backdrop-filter .4s;
}
.nav::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(18, 10, 46, .55);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line-d);
  opacity: 0; transition: opacity .4s;
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-hidden { transform: translateY(-100%); }
.nav.on-light::before { background: rgba(244, 241, 255, .72); border-bottom-color: var(--line-l); }
.nav.on-light { color: var(--ink); }
.nav__inner { position: relative; height: 100%; display: flex; align-items: center; gap: 32px; }
.nav__logo { display: flex; align-items: center; height: 34px; flex: none; }
.nav__logo svg { height: 100%; width: auto; }
.nav__logo .wm { fill: currentColor; }
.nav__links { display: flex; gap: 6px; margin-left: auto; }
.nav__link {
  position: relative;
  padding: 8px 14px;
  font-size: var(--t-s);
  font-weight: 600;
  opacity: .78;
  transition: opacity .3s;
}
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--grad); border-radius: 2px;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out);
}
.nav__link:hover, .nav__link[aria-current="page"] { opacity: 1; }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__tools { display: flex; align-items: center; gap: 12px; }
.lang {
  display: inline-flex; align-items: center;
  height: 38px; padding: 3px; border-radius: 999px;
  border: 1px solid var(--line-d);
  font-size: var(--t-xs); font-weight: 700;
}
.nav.on-light .lang { border-color: var(--line-l); }
.lang button { height: 100%; padding: 0 11px; border-radius: 999px; opacity: .6; transition: background .3s, opacity .3s, color .3s; }
.lang button[aria-pressed="true"] { opacity: 1; background: var(--white); color: var(--ink); }
.nav.on-light .lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-d); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease-out), opacity .3s; }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45;
  background: rgba(11, 9, 38, .72); backdrop-filter: blur(30px) saturate(1.5); -webkit-backdrop-filter: blur(30px) saturate(1.5);
  padding: calc(var(--nav-h) + 32px) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0% at calc(100% - 44px) 38px);
  transition: clip-path .9s var(--ease-io);
  visibility: hidden;
}
.menu::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 90% 0%, rgba(139, 61, 255, .45), transparent 70%), radial-gradient(70% 50% at 0% 100%, rgba(75, 59, 255, .35), transparent 70%); pointer-events: none; }
.menu-open .menu { clip-path: circle(150% at calc(100% - 44px) 38px); visibility: visible; }
.menu__links { position: relative; display: grid; gap: 4px; }
.menu__links a { font-family: var(--f-display); font-size: clamp(2.2rem, 10vw, 3.4rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; display: block; overflow: hidden; }
.menu__links a span { display: inline-block; transform: translateY(105%); transition: transform .8s var(--ease-out); }
.menu-open .menu__links a span { transform: none; }
.menu-open .menu__links a:nth-child(2) span { transition-delay: .05s; }
.menu-open .menu__links a:nth-child(3) span { transition-delay: .1s; }
.menu-open .menu__links a:nth-child(4) span { transition-delay: .15s; }
.menu-open .menu__links a:nth-child(5) span { transition-delay: .2s; }
.menu__foot { position: relative; display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .nav__links, .nav__tools .btn { display: none; }
  .burger { display: block; }
  .nav__tools { margin-left: auto; }
}

/* ---------- loader & curtain ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: radial-gradient(60% 50% at 50% 50%, #2a1670, #0b0926 70%);
  pointer-events: none;
}
.loader__mark { width: 110px; height: 110px; }
.loader__mark .leg { stroke-dasharray: 90; stroke-dashoffset: 90; }
.loader__mark .spark { transform-origin: 60px 19.5px; transform: scale(0) rotate(-90deg); }
.loader__mark .dot { transform-origin: 60px 78px; transform: scale(0); }
.loader__count {
  position: absolute; left: var(--gutter); bottom: 28px;
  font-family: var(--f-display); font-weight: 300; font-size: var(--t-2xl);
  font-variant-numeric: tabular-nums; letter-spacing: -.03em;
  opacity: .9;
}
.loader__bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }
.no-loader .loader { display: none; }

.curtain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: var(--night);
  clip-path: inset(100% 0 0 0);
  display: grid; place-items: center;
}
.curtain::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 60%, rgba(139, 61, 255, .55), transparent 70%); }
.curtain svg { position: relative; width: 72px; height: 72px; }
.is-leaving .curtain, .is-arriving .curtain { pointer-events: all; }

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none; mix-blend-mode: difference; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor__dot { width: 6px; height: 6px; background: #fff; }
.cursor__ring { width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, .7); transition: width .4s var(--ease-out), height .4s var(--ease-out), background-color .3s; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #000; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; background: #fff; }
.cursor.is-down .cursor__ring { width: 30px; height: 30px; }
@media (pointer: coarse), (prefers-reduced-motion: reduce) { .cursor { display: none; } }

/* ---------- WebGL stage ---------- */
.stage {
  position: fixed; inset: 0; z-index: 0;
  width: 100vw; height: 100vh; height: 100lvh;
  pointer-events: none;
}
.page-home main { position: relative; z-index: 1; }
.aura {
  position: fixed; inset: -20vmax; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40vmax 34vmax at 72% 38%, rgba(139, 61, 255, .32), transparent 70%),
    radial-gradient(36vmax 30vmax at 12% 90%, rgba(75, 59, 255, .28), transparent 70%),
    radial-gradient(26vmax 22vmax at 90% 90%, rgba(227, 75, 255, .18), transparent 70%);
}
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* anchors: labels pinned to 3D points */
.anchor {
  position: fixed; left: 0; top: 0; z-index: 1;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}
@media (max-width: 900px) { .anchor { display: none; } }

/* ==========================================================================
   HOME
   ========================================================================== */

/* hero */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: clamp(32px, 6vh, 64px);
}
.hero__title {
  font-family: var(--f-display);
  font-size: var(--t-hero);
  font-weight: 300;
  letter-spacing: -.03em;
  line-height: .92;
  margin-left: -.04em;
  font-variation-settings: "wght" 300;
  line-height: 1;
}
.hero__title .ch { display: inline-block; will-change: transform, font-variation-settings; }
.hero__title .w { display: inline-block; white-space: nowrap; }
html[lang="zh"] .hero__title { letter-spacing: .02em; line-height: 1.12; font-size: clamp(2.6rem, 1rem + 7vw, 8rem); }
.hero__row { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-top: clamp(24px, 4vh, 48px); flex-wrap: wrap; }
.hero__sub { font-size: var(--t-xl); font-weight: 600; max-width: 32ch; line-height: 1.3; letter-spacing: -.01em; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: clamp(32px, 6vh, 64px);
  padding-top: 20px; border-top: 1px solid var(--line-d);
  font-size: var(--t-xs); color: var(--text-d);
}
.scrollcue { display: inline-flex; align-items: center; gap: 12px; }
.scrollcue i { position: relative; width: 1px; height: 36px; background: var(--line-d); overflow: hidden; }
.scrollcue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: #fff; animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { to { top: 100%; } }
.curricula { display: flex; gap: 8px; }
.curricula span { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-d); }

/* stats */
.stats { padding-block: clamp(64px, 10vh, 120px); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-d); }
.stat { padding: 28px 24px 8px 0; border-right: 1px solid var(--line-d); }
.stat + .stat { padding-left: 24px; }
.stat:last-child { border-right: 0; }
.stat__num {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(2.6rem, 1.2rem + 4vw, 5.2rem);
  letter-spacing: -.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__num sup { font-size: .45em; vertical-align: top; position: relative; top: .25em; margin-left: .04em; font-weight: 400; }
.stat__label { margin-top: 14px; color: var(--text-d); font-size: var(--t-s); max-width: 18ch; }
@media (max-width: 760px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 12px 18px 0; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-d); }
}

/* stage-driven split layout: copy on the left, 3D on the right */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; min-height: 100vh; }
.split__copy > * + * { margin-top: 24px; }
.split__space { min-height: 60vh; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; min-height: auto; }
  .split__space { display: none; }
}

/* triangle */
.tri__corner { width: max-content; max-width: 230px; }
.tri__corner b { display: block; font-family: var(--f-display); font-weight: 700; font-size: var(--t-l); letter-spacing: -.01em; }
.tri__corner span { display: block; color: var(--text-d); font-size: var(--t-s); }
.tri__corner::before { content: ""; display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 18px 4px rgba(127, 230, 255, .6); margin-bottom: 10px; }
.tri__list { display: none; }
@media (max-width: 900px) {
  .tri__list { display: grid; gap: 16px; padding-top: 8px; }
  .tri__list li { padding: 16px 0; border-top: 1px solid var(--line-d); }
  .tri__list b { font-family: var(--f-display); font-weight: 700; display: block; }
}

/* architecture (pinned) */
.arch { padding-block: 0; }
.arch__pin { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; padding-block: calc(var(--nav-h) + 24px) 48px; }
.arch__steps { margin-top: 40px; position: relative; }
.arch__rail { display: flex; gap: 6px; margin-bottom: 22px; }
.arch__rail button { flex: 1; text-align: left; padding: 10px 0 0; border-top: 2px solid var(--line-d); font-size: var(--t-xs); font-weight: 700; color: var(--text-d); transition: color .3s, border-color .3s; }
.arch__rail button.is-active { color: #fff; border-color: #fff; }
.arch__panel { display: none; }
.arch__panel.is-active { display: block; animation: panelIn .7s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } }
.arch__panel h3 { margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-d); background: rgba(255, 255, 255, .04); font-size: var(--t-s); font-weight: 600; }
.chip img { width: 26px; height: 26px; object-fit: contain; }
.sec--light .chip { border-color: var(--line-l); background: #fff; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.trio div { padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-d); }
.trio b { display: block; font-family: var(--f-display); font-weight: 700; font-size: var(--t-s); margin-bottom: 4px; }
.trio span { font-size: var(--t-xs); color: var(--text-d); display: block; line-height: 1.45; }
.layer-tag { font-family: var(--f-display); font-size: var(--t-xs); font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-d); background: rgba(18, 10, 46, .6); backdrop-filter: blur(6px); white-space: nowrap; transform: translate(-100%, -50%); transition: background .4s, color .4s, border-color .4s; }
.layer-tag.is-active { background: #fff; color: var(--ink); border-color: #fff; }
@media (max-width: 900px) {
  .arch__pin { grid-template-columns: 1fr; padding-block: 96px; }
  .arch__rail { display: none; }
  .arch__panel { display: block; padding: 20px 0; border-top: 1px solid var(--line-d); }
  .trio { grid-template-columns: 1fr; }
}

/* engine */
.engine__stack { margin-top: 40px; position: relative; display: flex; flex-direction: column-reverse; gap: 0; padding-left: 32px; }
.engine__stack::before { content: ""; position: absolute; left: 6px; top: 12px; bottom: 12px; width: 1px; background: linear-gradient(to top, rgba(127, 230, 255, .2), rgba(227, 75, 255, .9)); }
.engine__pulse { position: absolute; left: 2px; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 16px 4px rgba(127, 230, 255, .7); animation: pulseUp 3.2s var(--ease-io) infinite; }
@keyframes pulseUp { from { bottom: 8px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { bottom: calc(100% - 16px); opacity: 0; } }
.engine__item { padding: 20px 0; border-top: 1px solid var(--line-d); position: relative; }
.engine__item:last-child { border-top: 0; }
.engine__item::before { content: ""; position: absolute; left: -31px; top: 28px; width: 7px; height: 7px; border-radius: 50%; background: var(--night); border: 1px solid rgba(255, 255, 255, .6); }
.engine__item small { display: block; font-family: var(--f-display); font-size: var(--t-xs); color: var(--signal); margin-bottom: 6px; }
.engine__item b { display: block; font-family: var(--f-display); font-weight: 700; font-size: var(--t-l); margin-bottom: 6px; letter-spacing: -.01em; }
.engine__item p { color: var(--text-d); font-size: var(--t-s); max-width: 46ch; }
.engine__item.is-hot b { color: #fff; }

/* flywheel orbit labels */
.orbit-tag { font-size: var(--t-xs); font-weight: 700; display: flex; align-items: center; gap: 8px; transform: translate(-50%, -50%); white-space: nowrap; }
.orbit-tag i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); font-style: normal; font-family: var(--f-display); font-size: 10px; }

/* proof */
.proof { margin-top: 56px; }
.proof__row { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line-d); }
.proof__name { font-weight: 700; font-size: var(--t-s); }
.bars { display: grid; gap: 8px; }
.bar { position: relative; height: 30px; border-radius: 8px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.bar__fill { position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: 8px; transform-origin: left; display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; font-family: var(--f-display); font-size: var(--t-xs); font-weight: 700; }
.bar--us .bar__fill { background: var(--grad); box-shadow: 0 0 30px -4px rgba(227, 75, 255, .7); }
.bar--them .bar__fill { background: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .8); }
.proof__legend { display: flex; gap: 20px; font-size: var(--t-xs); color: var(--text-d); margin-bottom: 8px; }
.proof__legend span { display: inline-flex; align-items: center; gap: 8px; }
.proof__legend i { width: 18px; height: 8px; border-radius: 3px; background: var(--grad); }
.proof__legend span + span i { background: rgba(255, 255, 255, .25); }
@media (max-width: 640px) { .proof__row { grid-template-columns: 1fr; gap: 10px; } }

/* products — horizontal track */
.hscroll { position: relative; padding-block: 0; overflow: hidden; }
.hscroll__head { padding-top: calc(var(--nav-h) + clamp(24px, 4vh, 48px)); display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.hscroll__head .h2 { font-size: var(--t-2xl); }
.hscroll__track { display: flex; gap: 24px; padding: clamp(24px, 4vh, 44px) var(--gutter) clamp(72px, 10vh, 110px); width: max-content; will-change: transform; }
.lcard {
  position: relative;
  width: min(78vw, 1040px);
  height: clamp(420px, calc(100vh - 330px), 640px);
  border-radius: 32px;
  overflow: hidden;
  display: grid; grid-template-columns: 1fr 1.05fr;
  background: #fff;
  border: 1px solid var(--line-l);
  box-shadow: 0 40px 80px -50px rgba(26, 16, 64, .45);
}
.lcard__copy { padding: clamp(28px, 3.4vw, 48px); display: flex; flex-direction: column; }
.lcard__lvl { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: var(--t-s); color: var(--ink-2); }
.lcard__lvl b { font-family: var(--f-display); font-weight: 700; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--grad); font-size: var(--t-s); }
.lcard__title { margin-top: auto; font-family: var(--f-display); font-weight: 700; font-size: var(--t-2xl); letter-spacing: -.03em; line-height: 1.04; }
.lcard__desc { margin-top: 14px; color: var(--text-l); max-width: 34ch; }
.lcard__prods { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line-l); display: flex; gap: 8px; flex-wrap: wrap; font-size: var(--t-xs); font-weight: 700; }
.lcard__prods span { padding: 6px 12px; border-radius: 999px; background: var(--mist); }
.lcard__vis { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 70% 20%, #e9ddff, #d6c7ff 40%, #b9a2ff 75%, #8b6dff); }
.lcard:nth-child(2) .lcard__vis { background: radial-gradient(120% 90% at 30% 20%, #e8f6ff, #cfe1ff 45%, #9fb3ff 80%, #6f7dff); }
.lcard:nth-child(3) .lcard__vis { background: radial-gradient(120% 90% at 70% 80%, #ffe9fb, #f6cfff 45%, #d9a6ff 80%, #b07bff); }
.lcard:nth-child(4) .lcard__vis { background: radial-gradient(120% 90% at 50% 30%, #fff7e6, #ffe2f3 45%, #e7c3ff 80%, #b99cff); }
.hscroll__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(40px, 6vh, 64px); height: 2px; background: var(--line-l); border-radius: 2px; overflow: hidden; }
.hscroll__progress i { position: absolute; inset: 0; background: var(--grad); transform-origin: left; transform: scaleX(0); }
@media (max-width: 900px) {
  .hscroll__track { width: auto; flex-direction: column; padding-bottom: 96px; }
  .lcard { width: 100%; height: auto; min-height: 0; grid-template-columns: 1fr; }
  .lcard__vis { order: -1; height: 300px; }
  .lcard__title { margin-top: 28px; }
  .hscroll__progress { display: none; }
}

/* mini-dashboard (L1 Strategy AI illustration) */
.mini-dash {
  position: absolute; inset: 12% 8% 12% 10%;
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(8px);
  border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(26, 16, 64, .5);
  padding: 18px; display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto 1fr 1fr; gap: 12px;
  color: var(--ink); font-size: 12px;
}
.mini-dash__top { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; font-weight: 700; }
.mini-dash__top span:last-child { font-weight: 600; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; }
.mini-dash__top span:last-child::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #23c55e; box-shadow: 0 0 0 4px rgba(35, 197, 94, .2); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.md-card { background: #fff; border-radius: 14px; padding: 12px; border: 1px solid var(--line-l); position: relative; overflow: hidden; }
.md-card small { color: var(--ink-2); font-weight: 700; display: block; }
.md-chart { grid-row: span 2; }
.md-chart svg { width: 100%; height: calc(100% - 20px); }
.md-ring { display: grid; place-items: center; }
.md-ring svg { width: 74px; height: 74px; }
.md-alert { display: grid; gap: 6px; align-content: start; }
.md-alert div { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; background: var(--mist); font-weight: 600; font-size: 11px; }
.md-alert div::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orchid); flex: none; }
.md-alert div:nth-child(3)::before { background: #23c55e; }

/* SDP fan */
.fan { position: absolute; inset: 0; display: grid; place-items: center; }
.fan img { position: absolute; width: 42%; border-radius: 6px; box-shadow: 0 24px 50px -20px rgba(26, 16, 64, .55); transition: transform .9s var(--ease-out); }
.fan img:nth-child(1) { transform: rotate(-14deg) translate(-30%, 4%); }
.fan img:nth-child(2) { transform: rotate(-6deg) translate(-12%, -2%); }
.fan img:nth-child(3) { transform: rotate(3deg) translate(8%, -4%); }
.fan img:nth-child(4) { transform: rotate(12deg) translate(28%, 2%); }
.lcard:hover .fan img:nth-child(1), .fan.is-open img:nth-child(1) { transform: rotate(-20deg) translate(-52%, 8%); }
.lcard:hover .fan img:nth-child(2), .fan.is-open img:nth-child(2) { transform: rotate(-8deg) translate(-20%, -4%); }
.lcard:hover .fan img:nth-child(3), .fan.is-open img:nth-child(3) { transform: rotate(5deg) translate(14%, -6%); }
.lcard:hover .fan img:nth-child(4), .fan.is-open img:nth-child(4) { transform: rotate(18deg) translate(46%, 4%); }

/* laptop frame */
.laptop { position: absolute; left: 50%; top: 50%; width: 88%; transform: translate(-50%, -50%); }
.laptop__screen { position: relative; border-radius: 14px 14px 4px 4px; background: #0f0b20; padding: 2.4% 2.4% 2.6%; box-shadow: 0 30px 60px -20px rgba(26, 16, 64, .55); }
.laptop__screen img { border-radius: 4px; width: 100%; }
.laptop__base { height: 14px; margin: 0 -6%; border-radius: 0 0 16px 16px; background: linear-gradient(#e7e4f2, #b8b2cf); }

/* L4 composition */
.l4 { position: absolute; inset: 0; }
.l4 .buddy { position: absolute; width: 50%; left: 4%; bottom: -4%; filter: drop-shadow(0 30px 30px rgba(26, 16, 64, .35)); }
.l4 .phones { position: absolute; width: 66%; right: -6%; top: 8%; filter: drop-shadow(0 30px 40px rgba(26, 16, 64, .35)); }

/* moat */
.moat__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.moat__rows { border-bottom: 1px solid var(--line-l); }
.moat__row { position: relative; display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; padding: 34px 0; border-top: 1px solid var(--line-l); cursor: default; }
.moat__row h3 { transition: transform .6s var(--ease-out); }
.moat__row p { color: var(--text-l); }
.moat__row::after { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease-out); }
.moat__row:hover::after { transform: scaleX(1); }
.moat__row:hover h3 { transform: translateX(10px); }
@media (max-width: 900px) {
  .moat__grid { grid-template-columns: 1fr; gap: 32px; }
  .moat__row { grid-template-columns: 1fr; gap: 8px; }
}

/* trust */
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.tile { position: relative; padding: 28px 24px 26px; border-radius: 24px; background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); border: 1px solid var(--line-d); overflow: hidden; min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; }
.tile::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--a, 0deg), transparent 0 70%, var(--orchid), var(--signal), transparent); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .5s; }
.tile:hover::before { opacity: 1; animation: spin 3s linear infinite; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --a: 360deg; } }
.tile svg { width: 44px; height: 44px; stroke: #fff; fill: none; stroke-width: 1.4; }
.tile b { font-family: var(--f-display); font-weight: 700; font-size: var(--t-l); letter-spacing: -.01em; line-height: 1.2; display: block; }
@media (max-width: 900px) { .trust__grid { grid-template-columns: 1fr 1fr; } .tile { min-height: 180px; } }
@media (max-width: 480px) { .trust__grid { grid-template-columns: 1fr; } }

/* CTA */
.cta { min-height: 100vh; display: grid; align-items: end; padding-bottom: clamp(64px, 10vh, 120px); }
.cta__inner { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.cta__title { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.8rem, 1rem + 7vw, 8.5rem); letter-spacing: -.03em; line-height: .95; }
html[lang="zh"] .cta__title { letter-spacing: 0; }
.cta .body { margin-top: 20px; }
@media (max-width: 760px) { .cta__inner { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { position: relative; z-index: 2; background: linear-gradient(180deg, rgba(10, 8, 34, .35), rgba(8, 6, 26, .85)); backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3); color: #fff; padding: 72px 0 32px; border-top: 1px solid var(--line-d); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__logo { height: 40px; width: auto; }
.footer__logo svg { height: 100%; width: auto; }
.footer__logo .wm { fill: #fff; }
.footer h4 { font-size: var(--t-xs); color: var(--text-d); font-weight: 600; margin-bottom: 14px; }
.footer__nav a { display: block; padding: 4px 0; font-weight: 600; opacity: .85; }
.footer__nav a:hover { opacity: 1; color: var(--signal); }
.footer__co { color: var(--text-d); font-size: var(--t-s); margin-top: 20px; max-width: 30ch; }
.footer__bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line-d); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--t-xs); color: var(--text-d); }
.footer__bottom a:hover { color: #fff; }
.footer__giant { font-family: var(--f-display); font-weight: 600; font-size: clamp(3rem, 11.2vw, 13rem); letter-spacing: -.035em; line-height: .8; margin-top: 56px; background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; white-space: nowrap; overflow: hidden; }
@media (max-width: 760px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__top > :first-child { grid-column: 1 / -1; } }

/* ==========================================================================
   SUB-PAGES
   ========================================================================== */
.phero { position: relative; min-height: 88vh; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--nav-h) + 48px) 0 clamp(48px, 8vh, 96px); overflow: hidden; }
.phero__bg { position: absolute; inset: 0; z-index: 0; }
.phero__bg canvas { width: 100% !important; height: 100% !important; }
.phero .container { position: relative; z-index: 2; pointer-events: none; }
.phero .container a, .phero .container button { pointer-events: auto; }
.phero__title { font-family: var(--f-display); font-weight: 300; font-size: clamp(2.8rem, 1rem + 7.4vw, 9rem); letter-spacing: -.03em; line-height: .94; }
html[lang="zh"] .phero__title { letter-spacing: .01em; line-height: 1.12; font-weight: 400; }
.phero__row { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-top: 32px; flex-wrap: wrap; }
.crumb { font-size: var(--t-s); font-weight: 700; color: var(--signal); margin-bottom: 20px; display: inline-flex; gap: 10px; align-items: center; }
.crumb::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.anchors { display: flex; gap: 8px; flex-wrap: wrap; }

.sec-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: end; margin-bottom: clamp(48px, 7vh, 80px); }
.sec-head .body, .sec-head .lead { justify-self: end; }
@media (max-width: 900px) { .sec-head { grid-template-columns: 1fr; gap: 20px; } .sec-head .body, .sec-head .lead { justify-self: start; } }

/* technology: cloud hub */
.hub { position: relative; display: grid; grid-template-columns: 1fr 1.1fr 1fr; grid-template-rows: auto auto; gap: 20px; align-items: stretch; }
.hub__lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.hub__lines path { fill: none; stroke: url(#hubgrad); stroke-width: 1.5; stroke-dasharray: 4 10; animation: dash 1.6s linear infinite; opacity: .8; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.hub__core { grid-column: 2; grid-row: 1 / span 2; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 28px; border-radius: 32px; background: radial-gradient(80% 70% at 50% 40%, rgba(139, 61, 255, .45), rgba(18, 10, 46, .6) 70%); border: 1px solid rgba(255, 255, 255, .18); overflow: hidden; }
.hub__core::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: conic-gradient(from 0deg, var(--indigo), var(--orchid), var(--signal), var(--indigo)); filter: blur(60px); opacity: .45; animation: rot 12s linear infinite; z-index: -1; }
@keyframes rot { to { transform: rotate(360deg); } }
.hub__core img { width: 62%; margin-bottom: 16px; filter: drop-shadow(0 20px 40px rgba(139, 61, 255, .6)); }
.hub__core h3 { margin-bottom: 8px; }
.hub__core p { color: var(--text-d); font-size: var(--t-s); max-width: 34ch; }
.dev { position: relative; z-index: 1; padding: 22px; border-radius: 24px; background: rgba(27, 17, 80, .7); border: 1px solid var(--line-d); backdrop-filter: blur(10px); transition: transform .6s var(--ease-out), border-color .4s; display: flex; flex-direction: column; gap: 10px; }
.dev:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, .4); }
.dev__img { height: 110px; display: flex; align-items: end; }
.dev__img img { max-height: 100%; width: auto; }
.dev small { color: var(--signal); font-weight: 700; font-size: var(--t-xs); }
.dev b { font-family: var(--f-display); font-weight: 700; font-size: var(--t-l); letter-spacing: -.01em; }
.dev p { color: var(--text-d); font-size: var(--t-s); line-height: 1.5; }
.solve { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 64px; border-top: 1px solid var(--line-d); }
.solve div { padding: 28px 28px 0 0; }
.solve div + div { padding-left: 28px; border-left: 1px solid var(--line-d); }
.solve b { font-family: var(--f-display); font-weight: 700; font-size: var(--t-l); display: block; margin-bottom: 4px; }
.solve em { font-style: normal; color: var(--signal); font-weight: 700; font-size: var(--t-s); display: block; margin-bottom: 12px; }
.solve p { color: var(--text-d); font-size: var(--t-s); }
@media (max-width: 1000px) {
  .hub { grid-template-columns: 1fr 1fr; }
  .hub__core { grid-column: 1 / -1; grid-row: auto; order: -1; }
  .hub__lines { display: none; }
}
@media (max-width: 760px) {
  .hub { grid-template-columns: 1fr; }
  .solve { grid-template-columns: 1fr; }
  .solve div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-d); margin-top: 24px; }
}

/* technology: engine reactor */
.reactor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.reactor__img { position: relative; border-radius: 32px; overflow: hidden; aspect-ratio: 4 / 3.4; }
.reactor__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: scale(1.15); }
.reactor__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(18, 10, 46, .5)); }
.layers3 { display: grid; gap: 14px; margin-top: 36px; }
.l3 { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 22px; border-radius: 22px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-d); }
.l3__n { font-family: var(--f-display); font-weight: 300; font-size: var(--t-xl); padding-right: .1em; line-height: 1; letter-spacing: -.04em; }
.l3 b { font-family: var(--f-display); font-weight: 700; display: block; margin-bottom: 4px; }
.l3 em { font-style: normal; font-size: var(--t-xs); font-weight: 700; color: var(--signal); display: block; margin-bottom: 8px; }
.l3 p { color: var(--text-d); font-size: var(--t-s); }
@media (max-width: 900px) { .reactor { grid-template-columns: 1fr; } }

/* technology: flywheel svg */
.fly { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.fly__svg { width: 100%; max-width: 560px; justify-self: center; overflow: visible; }
.fly__svg .ring { fill: none; stroke: rgba(26, 16, 64, .12); stroke-width: 1; }
.fly__svg .arc { fill: none; stroke: url(#flygrad); stroke-width: 10; stroke-linecap: round; }
.fly__svg .node circle { fill: #fff; stroke: url(#flygrad); stroke-width: 2; }
.fly__svg .node text { font-family: var(--f-display); font-size: 15px; font-weight: 700; fill: var(--ink); text-anchor: middle; }
.fly__svg .node .sub { font-family: var(--f-text); font-size: 11.5px; font-weight: 600; fill: var(--ink-2); }
.fly__svg .center { font-family: var(--f-display); font-size: 17px; font-weight: 700; fill: var(--ink); text-anchor: middle; }
.fly__list { display: grid; gap: 0; margin-top: 32px; }
.fly__list li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line-l); }
.fly__list b { font-family: var(--f-display); font-weight: 700; display: block; }
.fly__list span { color: var(--text-l); font-size: var(--t-s); }
.fly__list i { font-style: normal; font-family: var(--f-display); font-weight: 700; font-size: var(--t-xs); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--grad); }
@media (max-width: 900px) { .fly { grid-template-columns: 1fr; } }

/* bench (tech page, large) */
.bench { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bench__card { padding: 28px; border-radius: 28px; border: 1px solid var(--line-d); background: rgba(255, 255, 255, .03); }
.bench__card h3 { font-family: var(--f-text); font-size: var(--t-s); font-weight: 700; color: var(--text-d); margin-bottom: 24px; }
.bench__big { font-family: var(--f-display); font-weight: 300; font-size: clamp(3rem, 2rem + 3vw, 5.4rem); letter-spacing: -.03em; line-height: 1; }
.bench__big small { font-size: .4em; letter-spacing: 0; }
.bench__vs { margin-top: 10px; color: var(--text-d); font-size: var(--t-s); }
.bench__meter { margin-top: 26px; height: 120px; display: flex; align-items: end; gap: 14px; }
.bench__meter div { flex: 1; border-radius: 10px 10px 4px 4px; position: relative; transform-origin: bottom; }
.bench__meter div:first-child { background: linear-gradient(180deg, #e34bff, #8b3dff 50%, #4b3bff); height: var(--v); box-shadow: 0 0 40px -6px rgba(227, 75, 255, .7); }
.bench__meter div:last-child { background: rgba(255, 255, 255, .16); height: var(--v); }
.bench__meter span { position: absolute; top: calc(100% + 8px); left: 0; font-size: 11px; font-weight: 700; color: var(--text-d); white-space: nowrap; }
.bench__card .bench__meter { margin-bottom: 26px; }
@media (max-width: 900px) { .bench { grid-template-columns: 1fr; } }

/* knowledge sketch legend */
.legend { display: flex; gap: 8px; flex-wrap: wrap; }
.legend button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-d); background: rgba(18, 10, 46, .5); backdrop-filter: blur(6px); font-size: var(--t-xs); font-weight: 700; transition: background .3s, color .3s; }
.legend button i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.legend button[aria-pressed="true"] { background: #fff; color: var(--ink); }

/* products page */
.pnav { position: sticky; top: calc(var(--nav-h) + 12px); transition: top .6s var(--ease-out); z-index: 20; display: flex; justify-content: center; pointer-events: none; margin-bottom: -60px; }
.pnav__in { pointer-events: auto; display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .78); backdrop-filter: blur(14px); border: 1px solid var(--line-l); box-shadow: 0 20px 40px -24px rgba(26, 16, 64, .4); color: var(--ink); position: relative; }
.pnav__in a { position: relative; z-index: 1; padding: 9px 16px; border-radius: 999px; font-size: var(--t-xs); font-weight: 700; transition: color .3s; }
.pnav__in a.is-active { color: #fff; }
.pnav__pill { position: absolute; top: 5px; bottom: 5px; border-radius: 999px; background: var(--grad); transition: left .6s var(--ease-out), width .6s var(--ease-out); }
@media (max-width: 600px) { .pnav__in a { padding: 8px 10px; } }

.layer { padding-block: clamp(110px, 14vh, 170px) clamp(60px, 8vh, 100px); }
.layer__head { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 48px; }
.layer__badge { width: 96px; height: 96px; border-radius: 28px; display: grid; place-items: center; background: var(--grad); color: #fff; font-family: var(--f-display); font-weight: 400; font-size: 2rem; letter-spacing: -.04em; box-shadow: 0 20px 40px -16px rgba(139, 61, 255, .7); }
.layer__for { font-weight: 700; color: var(--violet); font-size: var(--t-s); margin-bottom: 8px; }
@media (max-width: 900px) { .layer__head { grid-template-columns: 1fr; gap: 16px; } .layer__badge { width: 72px; height: 72px; font-size: 1.5rem; border-radius: 22px; } }

.pgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.pcard { position: relative; grid-column: span 2; border-radius: 28px; background: #fff; border: 1px solid var(--line-l); padding: 28px; display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .6s var(--ease-out), transform .6s var(--ease-out); }
.pcard:hover { box-shadow: 0 30px 60px -36px rgba(26, 16, 64, .45); transform: translateY(-4px); }
.pcard h3 { font-family: var(--f-display); font-weight: 700; font-size: var(--t-l); letter-spacing: -.015em; line-height: 1.2; margin-bottom: 10px; }
.pcard p { color: var(--text-l); font-size: var(--t-s); }
.pcard__zh { display: block; font-size: var(--t-xs); color: var(--ink-2); font-weight: 600; margin-bottom: 14px; }
.pcard--hero { grid-column: span 4; grid-row: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 0; background: var(--ink); color: #fff; border: 0; min-height: min(460px, 62vh); }
.pcard--hero .pcard__copy { padding: 36px; display: flex; flex-direction: column; justify-content: flex-end; }
.pcard--hero h3 { font-size: var(--t-2xl); line-height: 1.05; letter-spacing: -.03em; }
.pcard--hero p { color: var(--text-d); font-size: var(--t-m); }
.pcard--hero .pcard__vis { position: relative; overflow: hidden; background: radial-gradient(100% 80% at 60% 30%, #8b3dff, #4b3bff 55%, #1b1150); }
.pcard--wide { grid-column: span 3; }
.star { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); font-weight: 700; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .12); margin-bottom: auto; align-self: flex-start; }
.star::before { content: ""; width: 10px; height: 10px; background: var(--signal); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.pcard__thumb { margin: -28px -28px 22px; height: 170px; background: var(--mist); position: relative; overflow: hidden; display: grid; place-items: center; }
.pcard__thumb img { max-height: 86%; width: auto; transition: transform .8s var(--ease-out); }
.pcard:hover .pcard__thumb img { transform: scale(1.06) rotate(-1deg); }
.pcard__thumb--cover img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.tbd { display: inline-block; margin-top: 12px; font-size: var(--t-xs); color: var(--ink-2); }
@media (max-width: 1100px) { .pcard--hero { grid-column: span 6; } .pcard { grid-column: span 3; } }
@media (max-width: 700px) { .pcard, .pcard--wide { grid-column: span 6; } .pcard--hero { grid-template-columns: 1fr; } .pcard--hero .pcard__vis { min-height: 300px; order: -1; } }

/* chat mock (Family Service Desk) */
.chat { position: absolute; inset: 9% 9%; display: flex; flex-direction: column; gap: 10px; justify-content: flex-end; }
.chat__b { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 13px; line-height: 1.45; font-weight: 600; opacity: 0; transform: translateY(10px); }
.chat__b--in { background: rgba(255, 255, 255, .95); color: var(--ink); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat__b--out { background: rgba(18, 10, 46, .55); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; border: 1px solid rgba(255, 255, 255, .25); }
.chat__b--sys { align-self: center; font-size: 11px; padding: 6px 12px; background: rgba(127, 230, 255, .2); color: #fff; border: 1px solid rgba(127, 230, 255, .5); border-radius: 999px; }
.chat.is-live .chat__b { animation: bubble .6s var(--ease-out) forwards; }
.chat.is-live .chat__b:nth-child(2) { animation-delay: .9s; }
.chat.is-live .chat__b:nth-child(3) { animation-delay: 1.8s; }
.chat.is-live .chat__b:nth-child(4) { animation-delay: 2.7s; }
.chat.is-live .chat__b:nth-child(5) { animation-delay: 3.6s; }
@keyframes bubble { to { opacity: 1; transform: none; } }

/* about */
.manifesto { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.8rem, 1rem + 3vw, 3.6rem); line-height: 1.16; letter-spacing: -.03em; max-width: 22ch; }
html[lang="zh"] .manifesto { letter-spacing: 0; line-height: 1.45; max-width: 18em; }
.manifesto .wd { opacity: .16; transition: opacity .2s; }
.manifesto .wd.is-on { opacity: 1; }
.globe-wrap { position: relative; height: min(92vh, 900px); }
.globe-wrap canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.globe-copy { position: absolute; left: var(--gutter); bottom: 64px; z-index: 2; max-width: 560px; pointer-events: none; }
.globe-copy .h2 { font-size: var(--t-2xl); }
.co { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.co__card { position: relative; border-radius: 32px; padding: 40px; background: var(--ink); color: #fff; overflow: hidden; min-height: 380px; display: flex; flex-direction: column; justify-content: space-between; }
.co__card::before { content: ""; position: absolute; right: -20%; top: -30%; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(227, 75, 255, .6), transparent 65%); }
.co__card img { width: 64px; height: 64px; position: relative; }
.co__card h3 { position: relative; font-family: var(--f-display); font-weight: 700; font-size: var(--t-xl); letter-spacing: -.02em; line-height: 1.2; }
.co__card p { position: relative; color: var(--text-d); }
.co__meta { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 20px; border-top: 1px solid var(--line-d); font-size: var(--t-s); }
.co__meta small { display: block; color: var(--text-d); font-size: var(--t-xs); }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.team__card { border-radius: 28px; overflow: hidden; background: #fff; border: 1px solid var(--line-l); }
.team__vis { height: 220px; display: grid; place-items: center; position: relative; overflow: hidden; }
.team__vis img { max-height: 80%; width: auto; }
.team__card:nth-child(1) .team__vis { background: linear-gradient(140deg, #ede6ff, #c9b6ff); }
.team__card:nth-child(2) .team__vis { background: linear-gradient(140deg, #e3f0ff, #b6c4ff); }
.team__card:nth-child(3) .team__vis { background: linear-gradient(140deg, #ffe7fb, #e1b9ff); }
.team__body { padding: 26px; }
.team__body h3 { font-family: var(--f-display); font-weight: 700; font-size: var(--t-l); letter-spacing: -.01em; margin-bottom: 8px; }
.team__body p { color: var(--text-l); font-size: var(--t-s); }
@media (max-width: 900px) { .co { grid-template-columns: 1fr; } .team { grid-template-columns: 1fr; } .globe-wrap { height: 70vh; } }

/* contact */
.contact { min-height: 100vh; padding: calc(var(--nav-h) + 56px) 0 96px; position: relative; overflow: hidden; }
.contact__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.contact__bg span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .7; }
.contact__bg span:nth-child(1) { width: 46vmax; height: 46vmax; left: -12vmax; top: -10vmax; background: #4b3bff; animation: blob1 18s ease-in-out infinite alternate; }
.contact__bg span:nth-child(2) { width: 38vmax; height: 38vmax; right: -10vmax; top: 20vh; background: #b23dff; animation: blob2 22s ease-in-out infinite alternate; }
.contact__bg span:nth-child(3) { width: 26vmax; height: 26vmax; left: 30vw; bottom: -14vmax; background: #e34bff; opacity: .45; animation: blob1 26s ease-in-out infinite alternate-reverse; }
@keyframes blob1 { to { transform: translate(18vw, 12vh) scale(1.2); } }
@keyframes blob2 { to { transform: translate(-16vw, -8vh) scale(.85); } }
.contact .container { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.steps { margin-top: 40px; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line-d); }
.steps li i { font-style: normal; font-family: var(--f-display); font-weight: 400; font-size: var(--t-s); color: var(--signal); }
.steps b { display: block; font-weight: 700; }
.steps span { color: var(--text-d); font-size: var(--t-s); }
.form { position: relative; border-radius: 32px; padding: clamp(24px, 3.4vw, 44px); background: rgba(255, 255, 255, .96); color: var(--ink); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .6); }
.form h2 { font-family: var(--f-display); font-weight: 700; font-size: var(--t-xl); letter-spacing: -.02em; margin-bottom: 6px; }
.form > p { color: var(--text-l); font-size: var(--t-s); margin-bottom: 26px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: var(--t-xs); font-weight: 700; color: var(--ink-2); margin-bottom: 6px; padding: 0; }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--t-s); color: var(--ink);
  height: 50px; padding: 0 16px; border-radius: 14px;
  border: 1.5px solid var(--line-l); background: var(--mist);
  transition: border-color .3s, background .3s, box-shadow .3s;
  appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%231a1040' stroke-width='1.6' fill='none'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field textarea { height: 110px; padding: 14px 16px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); background: #fff; box-shadow: 0 0 0 4px rgba(139, 61, 255, .15); }
.field.is-invalid input, .field.is-invalid select { border-color: #e0346b; }
.field__err { font-size: 12px; color: #c4245a; margin-top: 6px; font-weight: 600; display: none; }
.field.is-invalid .field__err { display: block; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.picks label { margin: 0; cursor: pointer; }
.picks input { position: absolute; opacity: 0; pointer-events: none; }
.picks span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line-l); font-size: var(--t-xs); font-weight: 700; color: var(--ink); transition: background .3s, color .3s, border-color .3s; }
.picks input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.picks input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }
.form__foot { margin-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__foot .small { color: var(--text-l); max-width: 34ch; }
.form__done { position: absolute; inset: 0; border-radius: inherit; background: #fff; display: grid; place-items: center; text-align: center; padding: 40px; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.form.is-done .form__done { opacity: 1; visibility: visible; }
.form__done svg { width: 84px; height: 84px; margin: 0 auto 20px; }
.form__done .tick { stroke-dasharray: 40; stroke-dashoffset: 40; }
.form.is-done .tick { animation: tick .8s .3s var(--ease-out) forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }
.form__done h3 { font-family: var(--f-display); font-weight: 700; font-size: var(--t-xl); margin-bottom: 8px; }
.form__done p { color: var(--text-l); max-width: 34ch; margin: 0 auto; }
@media (max-width: 900px) { .contact .container { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .fgrid { grid-template-columns: 1fr; } }

/* privacy */
.legal { max-width: 760px; }
.legal h2 { font-family: var(--f-display); font-weight: 700; font-size: var(--t-l); margin: 40px 0 12px; }
.legal p, .legal li { color: var(--text-l); }
.legal ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 6px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .loader { display: none; }
}

/* logo */
.logo-svg .spark { fill: #fff; transition: fill .4s; }
.logo-svg .wm { fill: currentColor; }
.nav.on-light .logo-svg .spark { fill: var(--violet); }

/* products hero: floating product orbit */
.prod-orbit { position: absolute; inset: 0; }
.prod-orbit::before { content: ""; position: absolute; right: -10vw; top: 10%; width: 70vw; height: 80%; background: radial-gradient(50% 50% at 50% 50%, rgba(139, 61, 255, .45), transparent 70%); }
.prod-orbit img { position: absolute; left: var(--x); top: var(--y); width: var(--w); transform: translate(-50%, -50%); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); will-change: transform; }
@media (max-width: 900px) {
  .prod-orbit { opacity: .45; }
  .prod-orbit img { width: calc(var(--w) * 2.2); }
}

/* live quiz mini */
.quiz { display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 10px; padding: 18px 22px; background: linear-gradient(140deg, #ece6ff, #d9ccff); }
.quiz__q { font-size: 12.5px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.quiz__opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.quiz__opts span { text-align: center; padding: 7px 0; border-radius: 10px; background: #fff; font-family: var(--f-display); font-size: 11px; font-weight: 700; border: 1.5px solid transparent; }
.quiz__opts span:first-child { animation: pick 4s infinite; }
@keyframes pick { 0%, 40% { border-color: transparent; background: #fff; color: var(--ink); } 50%, 100% { border-color: #23c55e; background: #eafff1; color: #12823c; } }
.quiz__bar { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .7); overflow: hidden; }
.quiz__bar i { display: block; height: 100%; width: 0; background: var(--grad); animation: fillbar 4s infinite; }
@keyframes fillbar { 0% { width: 0; } 45% { width: 82%; } 100% { width: 82%; } }

.layer + .layer { border-top: 1px solid var(--line-l); }
.pcard--hero .pcard__vis .mini-dash { font-size: 11px; }
.pcard--hero .star { background: rgba(255, 255, 255, .14); }
.pcard .star { color: inherit; }
.pcard:not(.pcard--hero) .star { background: rgba(127, 230, 255, .16); }

/* about */
.about-hero-img { position: absolute; right: 0; top: 0; height: 100%; width: min(62vw, 900px); object-fit: cover; object-position: 50% 30%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%), linear-gradient(0deg, transparent 0%, #000 30%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0%, #000 45%), linear-gradient(0deg, transparent 0%, #000 30%); mask-composite: intersect;
  filter: grayscale(1) contrast(1.2) brightness(.5); }
.about-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, #4b3bff, #8b3dff 50%, #e34bff); mix-blend-mode: color; pointer-events: none; }
.about-bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--night) 30%, transparent 70%); z-index: 1; pointer-events: none; }
@media (max-width: 900px) { .about-hero-img { width: 100%; opacity: .55; } }
.globe-wrap canvas { cursor: grab; }

.nav-hidden .pnav { top: 14px; }

/* product mocks (illustrative UI, no real data) */
.mock-report { width: 62%; height: 84%; margin-top: 12%; background: #fff; border-radius: 8px 8px 0 0; box-shadow: 0 20px 40px -20px rgba(26,16,64,.4); padding: 12px; display: grid; gap: 7px; align-content: start; }
.mr__head { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line-l); }
.mr__head span { width: 18px; height: 18px; border-radius: 6px; background: var(--grad); }
.mr__head b { font-family: var(--f-display); font-weight: 700; font-size: 10px; }
.mr__row { display: grid; grid-template-columns: 1fr 22px; gap: 8px; align-items: center; }
.mr__row i { height: 7px; border-radius: 4px; background: linear-gradient(90deg, #8b3dff var(--w), #efeaff var(--w)); }
.mr__row em { font-style: normal; font-family: var(--f-display); font-size: 10px; font-weight: 600; color: var(--violet); }
.mock-report svg { width: 100%; height: 30px; margin-top: 4px; }
.mock-bars { width: 76%; height: 66%; display: flex; align-items: end; gap: 8px; border-bottom: 1.5px solid rgba(26,16,64,.2); }
.mock-bars i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #a879ff, #6b4bff); transform-origin: bottom; animation: grow 1.4s var(--ease-out) both; }
.mock-bars i.gap { background: linear-gradient(180deg, #ff86d0, #e34bff); }
.mock-bars i:nth-child(2) { animation-delay: .05s; } .mock-bars i:nth-child(3) { animation-delay: .1s; } .mock-bars i:nth-child(4) { animation-delay: .15s; }
.mock-bars i:nth-child(5) { animation-delay: .2s; } .mock-bars i:nth-child(6) { animation-delay: .25s; } .mock-bars i:nth-child(7) { animation-delay: .3s; } .mock-bars i:nth-child(8) { animation-delay: .35s; }
@keyframes grow { from { transform: scaleY(0); } }
.mock-flash { perspective: 800px; width: 64%; height: 70%; }
.mf__card { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: flip 5s var(--ease-io) infinite; }
.mf__front, .mf__back { position: absolute; inset: 0; border-radius: 16px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 20px 40px -20px rgba(26,16,64,.45); padding: 12px; text-align: center; }
.mf__front { background: #fff; }
.mf__front b { font-family: var(--f-display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.mf__front small, .mf__back small { font-size: 10px; font-weight: 700; color: var(--ink-2); }
.mf__back { background: var(--grad); color: #fff; transform: rotateY(180deg); font-weight: 700; font-size: 13px; }
.mf__back small { color: rgba(255,255,255,.8); }
@keyframes flip { 0%, 40% { transform: rotateY(0); } 50%, 90% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }

/* fallback when WebGL is unavailable */
.no-webgl .hero { background: url("../img/brain.webp") no-repeat right 4vw center / auto 80%; }
.no-webgl .anchor { display: none; }
@media (max-width: 900px) { [data-knowledge] { opacity: .5; } }


/* ==========================================================================
   LIQUID GLASS — diffused gradient background + glass surfaces
   ========================================================================== */
.liquid {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    linear-gradient(165deg, #0a0926 0%, #110b33 40%, #150b30 65%, #090f2b 100%);
}
/* blobs are painted on a tiny canvas and scaled up by the browser: perfectly smooth diffusion */
.liquid__c { position: absolute; inset: -6%; width: 112%; height: 112%; filter: blur(28px); }
.liquid::after { content: ""; position: absolute; inset: 0; background: radial-gradient(140% 110% at 50% 40%, transparent 45%, rgba(6, 4, 22, .45) 100%), linear-gradient(180deg, rgba(8, 6, 28, .15), rgba(8, 6, 28, .35)); }

/* glass surfaces */
:root {
  --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .04) 55%, rgba(255, 255, 255, .07));
  --glass-border: rgba(255, 255, 255, .18);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -1px 0 rgba(255, 255, 255, .05), inset 0 0 30px rgba(255, 255, 255, .03), 0 24px 60px -28px rgba(4, 2, 20, .8);
  --glass-blur: blur(22px) saturate(170%);
}
.tile, .dev, .l3, .bench__card, .trio div, .hub__core, .chip, .layer-tag, .legend button, .btn--ghost, .lang, .orbit-tag i, .co__card, .proof .bar {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.sec--light .chip, .sec--light .btn--ghost { background: rgba(255, 255, 255, .6); border-color: var(--line-l); box-shadow: inset 0 1px 0 #fff, 0 10px 30px -18px rgba(26, 16, 64, .3); }
.orbit-tag i { color: #fff; }
.layer-tag.is-active, .legend button[aria-pressed="true"], .lang button[aria-pressed="true"] { background: rgba(255, 255, 255, .92); color: var(--ink); }
.nav.on-light .lang { background: rgba(255, 255, 255, .5); border-color: var(--line-l); box-shadow: none; }
/* specular sheen that follows the pointer (JS sets --mx / --my) */
.tile::after, .dev::after, .l3::after, .bench__card::after, .hub__core::after, .co__card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 30%) var(--my, -20%), rgba(255, 255, 255, .16), transparent 45%);
  opacity: .9; transition: opacity .4s;
}
.l3, .bench__card { position: relative; }
.dev { background: var(--glass-bg); }
.hub__core { background: radial-gradient(80% 70% at 50% 40%, rgba(139, 61, 255, .35), transparent 70%), var(--glass-bg); }
.co__card { color: #fff; background: radial-gradient(90% 90% at 100% 0%, rgba(227, 75, 255, .35), transparent 60%), linear-gradient(135deg, #2a1a78, #1a1050); }
.co__card::before { display: none; }
.form { background: rgba(255, 255, 255, .9); backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4); box-shadow: inset 0 1px 0 #fff, 0 50px 100px -40px rgba(0, 0, 0, .6); border: 1px solid rgba(255, 255, 255, .6); }
.mini-dash { background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .8); box-shadow: inset 0 1px 0 #fff, 0 30px 60px -30px rgba(26, 16, 64, .5); }
.nav::before { background: rgba(14, 10, 44, .38); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .08); }
/* light sections float as frosted panes over the gradient */
.sec--light { background: linear-gradient(180deg, rgba(244, 241, 255, .97), rgba(240, 236, 255, .95)); }

/* full-screen "slides" for the pager */
.screen { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.screen > .container { width: 100%; }
.stats.screen .stat__num { font-size: clamp(3rem, 1.2rem + 5vw, 6.4rem); }
.stats.screen .stat__label { font-size: var(--t-m); }
@media (max-width: 900px) { .screen { min-height: auto; } }

/* spam trap — hidden from people, visible to bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- every desktop "slide" fits one screen ---------- */
@media (min-width: 901px) {
  .sec--fit { padding-block: 0; }
  .sec--fit .split { min-height: 100vh; padding-block: calc(var(--nav-h) + 2vh) 4vh; }
  .split__copy > * + * { margin-top: min(24px, 2.6vh); }
  .arch__pin { height: 100vh; min-height: 0; padding-block: calc(var(--nav-h) + 1.5vh) 3vh; }
  .arch__pin .lead { margin-top: min(20px, 2vh) !important; }
  .arch__steps { margin-top: min(40px, 3.6vh); }
  .arch__rail { margin-bottom: min(22px, 2vh); }
  .arch__panel .chips, .arch__panel .trio { margin-top: min(18px, 1.8vh); }
  .engine__stack { margin-top: min(40px, 3vh); }
  .engine__item { padding: min(20px, 1.9vh) 0; }
  .engine__item small { margin-bottom: 2px; }
  .lead { font-size: clamp(1.05rem, min(1.3125rem, 2.5vh), 1.3125rem); }
  .cta__title { font-size: clamp(2.8rem, min(1rem + 7vw, 13vh), 8.5rem); }
  .phero__title { font-size: clamp(2.8rem, min(1rem + 7.4vw, 14vh), 9rem); }
  .stats.screen .stat__num { font-size: clamp(3rem, min(1.2rem + 5vw, 10vh), 6.4rem); }
}
@media (min-width: 901px) and (max-height: 820px) {
  .engine__item small { display: none; }
  .engine__item { padding: 1.3vh 0; }
  .engine__item::before { top: calc(1.3vh + 8px); }
  .engine__item b { margin-bottom: 2px; }
}
@media (min-width: 901px) and (max-height: 760px) {
  .trio span, .engine__item p { font-size: var(--t-xs); }
  .hero__foot { margin-top: 2.5vh; }
  .hero__row { margin-top: 2vh; }
}

/* cards scale with screen height so each fits a "slide" on short laptop screens */
@media (min-width: 901px) {
  .pcard { padding: clamp(18px, 3vh, 28px); }
  .pcard__thumb { height: clamp(96px, 19vh, 170px); margin: calc(-1 * clamp(18px, 3vh, 28px)) calc(-1 * clamp(18px, 3vh, 28px)) clamp(12px, 2.4vh, 22px); }
  .pcard .pcard__thumb[style*="height:300px"] { height: clamp(170px, 30vh, 300px) !important; }
  .pcard--hero .pcard__copy { padding: clamp(22px, 4vh, 36px); }
  .dev { padding: clamp(14px, 2.4vh, 22px); gap: clamp(4px, 1vh, 10px); }
  .dev__img { height: clamp(56px, 11vh, 110px); }
  .hub__core { padding: clamp(20px, 4vh, 40px) 28px; }
  .hub__core img { width: auto; max-height: 24vh; max-width: 62%; }
  .l3 { padding: clamp(14px, 2.4vh, 22px); }
  .layers3 { gap: clamp(8px, 1.4vh, 14px); margin-top: clamp(18px, 3.6vh, 36px); }
}
@media (min-width: 901px) and (max-height: 760px) {
  .pcard p, .dev p, .l3 p { font-size: var(--t-xs); line-height: 1.5; }
}

@media (min-width: 901px) {
  .manifesto { font-size: clamp(1.5rem, min(1rem + 2.6vw, 4.6vh), 3.4rem); max-width: 36ch; }
  html[lang="zh"] .manifesto { max-width: 24em; }
}

/* ==========================================================================
   MOBILE POLISH
   ========================================================================== */
@media (max-width: 900px) {
  /* comfortable tap targets (≥ 40px) */
  .lang { height: 42px; }
  .lang button { min-width: 44px; }
  .footer__nav a { padding: 8px 0; }
  .footer__bottom a { display: inline-block; padding: 8px 0; }
  .chip, .picks span { min-height: 38px; }
  /* lighter glass on phones: smoother scrolling */
  :root { --glass-blur: blur(12px) saturate(150%); }
  .liquid__c { filter: blur(18px); }
  /* security points: 2 × 2 instead of one tall column */
  .trust__grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 32px; }
  .tile { min-height: 150px; padding: 18px 16px; border-radius: 20px; }
  .tile svg { width: 34px; height: 34px; }
  .tile b { font-size: var(--t-m); }
  /* products hero: keep the product shots clear of the headline */
  .prod-orbit img:nth-child(n+3) { display: none; }
  .prod-orbit img:nth-child(1) { left: 74% !important; top: 20% !important; width: 46vw !important; }
  .prod-orbit img:nth-child(2) { left: 26% !important; top: 22% !important; width: 22vw !important; }
  .prod-orbit { opacity: .55; }
  /* tighter vertical rhythm */
  .sec { padding-block: clamp(72px, 11vh, 110px); }
  .split__copy > * + * { margin-top: 18px; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
  .footer__giant { font-size: 17vw; }
  .phero { min-height: 82svh; }
}
@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .hero__title { font-size: 2.75rem; }
  .stats__grid .stat__num { font-size: 2.5rem; }
  .nav__logo { height: 28px; }
  .lang button { min-width: 40px; padding: 0 8px; }
  .trust__grid { grid-template-columns: 1fr; }
  .tile { min-height: 0; flex-direction: row; align-items: center; gap: 14px; justify-content: flex-start; }
}

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq__intro { position: sticky; top: calc(var(--nav-h) + 4vh); }
.faq__intro .lead { margin: min(20px, 2.4vh) 0 min(28px, 3vh); }
.faq__list { display: grid; gap: min(10px, 1.2vh); }
.qa { border-radius: 18px; background: var(--glass-bg); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); transition: background .4s, border-color .4s; }
.qa[open] { background: linear-gradient(135deg, rgba(139, 61, 255, .22), rgba(255, 255, 255, .05)); border-color: rgba(255, 255, 255, .28); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: min(18px, 2.1vh) 22px; font-weight: 700; font-size: var(--t-m); line-height: 1.35; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 18px; }
.qa summary i { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); transition: transform .5s var(--ease-out), background .3s; }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: #fff; transform: translate(-50%, -50%); transition: transform .5s var(--ease-out); }
.qa summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] summary i { transform: rotate(180deg); background: #fff; }
.qa[open] summary i::before, .qa[open] summary i::after { background: var(--ink); }
.qa[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa__a { padding: 0 22px min(18px, 2.2vh); }
.qa__a p { color: var(--text-d); font-size: var(--t-s); line-height: 1.65; max-width: 62ch; }
.qa[open] .qa__a { animation: qaIn .5s var(--ease-out); }
@keyframes qaIn { from { opacity: 0; transform: translateY(-6px); } }
@media (min-width: 901px) and (max-height: 820px) {
  .faq.sec { padding-top: calc(var(--nav-h) + 8px); padding-bottom: 16px; }
  .faq__list { gap: 6px; }
  .qa summary { padding: 10px 18px; font-size: var(--t-s); }
  .qa summary i { width: 24px; height: 24px; }
  .qa__a { padding: 0 18px 12px; }
  .qa__a p { font-size: .875rem; line-height: 1.55; }
}
@media (min-width: 901px) and (max-height: 700px) { .qa summary { padding: 8px 18px; } .faq__list { gap: 5px; } }
@media (max-width: 900px) {
  .faq__grid { grid-template-columns: 1fr; gap: 24px; }
  .faq__intro { position: static; }
  .qa summary { padding: 16px 18px; font-size: var(--t-s); }
  .qa__a { padding: 0 18px 16px; }
}
