/* ServerGO website — the brand motif is the app icon: two dark slabs, a blue light seam, a green LED. */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #05070b;
  --bg-2: #0a0d14;
  --panel: #0f131c;
  --panel-2: #151a25;
  --panel-3: #1b2130;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --line-3: rgba(255, 255, 255, 0.2);
  --text: #eef2f8;
  --text-2: #a4aec0;
  --text-3: #6c7689;
  --seam: #2f7bff;
  --seam-hi: #6fb0ff;
  --seam-deep: #123a8a;
  --led: #3be07a;
  --amber: #ff9f0a;
  --red: #ff5a52;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --fs-hero: clamp(2.75rem, 10.4vw, 9.25rem);
  --fs-h2: clamp(2.1rem, 5.4vw, 4.6rem);
  --fs-h2-sm: clamp(1.8rem, 3.8vw, 3.25rem);
  --fs-lead: clamp(1.02rem, 0.95rem + 0.35vw, 1.24rem);
  --section-y: clamp(88px, 11vw, 168px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
html:not(.reduced) { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* Film grain keeps the large dark fields from banding and gives them a material feel. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  background: url("/assets/img/noise.png");
  opacity: 0.5;
  mix-blend-mode: overlay;
}
img, svg, picture { 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; }
code, pre { font-family: var(--mono); }
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-style: normal; color: var(--text); }
::selection { background: rgba(47, 123, 255, 0.45); color: #fff; }
:focus-visible { outline: 2px solid var(--seam-hi); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 200; padding: 10px 16px; border-radius: 999px; background: var(--seam); color: #fff; transform: translateY(-160%); transition: transform 0.2s; }
.skip:focus { transform: none; }
.br-m { display: none; }

/* ---------------------------------------------------------------- atoms */

.ico { width: 20px; height: 20px; flex: none; }
.ico-lg { width: 28px; height: 28px; }

.led {
  --c: var(--led);
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent), 0 0 12px var(--c);
  flex: none;
}
.led::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--c);
  opacity: 0;
  animation: ping 2.6s var(--ease) infinite;
}
.led-amber { --c: var(--amber); }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.7; } 70%, 100% { transform: scale(1.9); opacity: 0; } }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--text-3); }
.dot-green { background: var(--led); box-shadow: 0 0 10px rgba(59, 224, 122, 0.6); }
.dot-grey { background: #8a93a3; }
.dot-grey-dash { background: transparent; border: 1.5px dashed #6c7689; }
.dot-amber { background: transparent; border: 2px solid var(--amber); }
.dot-red { background: var(--red); box-shadow: 0 0 10px rgba(255, 90, 82, 0.6); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--seam-hi);
  margin-bottom: clamp(20px, 2.4vw, 32px);
}
.eyebrow-num { color: var(--text-3); }
.eyebrow-rule { width: 28px; height: 1px; background: linear-gradient(90deg, var(--seam), transparent); }

.h2 {
  font-size: var(--fs-h2);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.042em;
  text-wrap: balance;
}
.h2-sm { font-size: var(--fs-h2-sm); line-height: 1.1; }
:lang(zh) .h2 { letter-spacing: -0.03em; line-height: 1.12; }
.lead { font-size: var(--fs-lead); line-height: 1.65; color: var(--text-2); max-width: 36em; text-wrap: pretty; }
:lang(zh) .lead { line-height: 1.8; }

.btn {
  --h: 52px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.5s var(--ease), background-color 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.4s;
}
.btn .ico { width: 18px; height: 18px; transition: transform 0.5s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(180deg, #4b8fff, var(--seam));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 10px 30px -10px rgba(47, 123, 255, 0.8), 0 0 0 1px rgba(111, 176, 255, 0.4);
}
/* A light sweep crosses the button on hover — the seam catching light. */
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease);
}
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 14px 40px -10px rgba(47, 123, 255, 0.95), 0 0 0 1px rgba(111, 176, 255, 0.6); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px var(--line-3); }
.btn-small { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn-static { cursor: default; }
.btn-static:active { transform: none; }
.btn-static::before { display: none; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; color: var(--text-2); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line); }
.chip .ico { width: 13px; height: 13px; }

.lights { display: inline-flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }

/* Pointer-follow highlight shared by cards (--mx/--my are set from site.js). */
.spot { position: relative; }
.spot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -40%), rgba(111, 176, 255, 0.09), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
}
.spot:hover::before { opacity: 1; }

/* Reveal on scroll. Without JS (or with reduced motion) everything is simply visible. */
html.js:not(.reduced) .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
html.js:not(.reduced) .reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- nav */

.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color 0.4s, box-shadow 0.4s, backdrop-filter 0.4s; }
.nav.is-scrolled, .nav.is-open { background: rgba(5, 7, 11, 0.72); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); box-shadow: 0 1px 0 var(--line); }
.nav-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none; }
.nav-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); background: linear-gradient(90deg, transparent, var(--seam) 30%, var(--seam-hi)); box-shadow: 0 0 10px var(--seam); }
.nav-inner { display: flex; align-items: center; height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.logo-mark { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { margin-inline: auto; }
.nav-links ul { display: flex; gap: 4px; }
.nav-links a { position: relative; display: block; padding: 8px 14px; font-size: 14px; color: var(--text-2); border-radius: 999px; transition: color 0.25s, background-color 0.25s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-links a.is-active { color: var(--text); }
.nav-links a.is-active::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 14px; height: 2px; margin-left: -7px; border-radius: 2px; background: var(--seam); box-shadow: 0 0 8px var(--seam); }
.nav-end { display: flex; align-items: center; gap: 10px; }
.nav-lang { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--text-2); padding: 8px 10px; border-radius: 8px; transition: color 0.25s, background-color 0.25s; }
.nav-lang:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-soon { display: inline-flex; align-items: center; gap: 9px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; color: var(--text); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line-2); }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 10px; align-items: center; justify-content: center; }
.nav-toggle:hover { background: rgba(255, 255, 255, 0.06); }
.nav-toggle .ico path { transition: transform 0.4s var(--ease); transform-origin: center; }
.nav.is-open .nav-toggle .ico path { transform: rotate(45deg) scaleX(0.9); d: path("M5 5L19 19M19 5L5 19"); }
.menu { padding: 8px var(--gutter) 28px; border-top: 1px solid var(--line); }
.menu ul { display: grid; }
.menu a { display: block; padding: 14px 0; font-size: 22px; font-weight: 550; letter-spacing: -0.02em; border-bottom: 1px solid var(--line); }
.menu .menu-lang { border: 0; font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; color: var(--text-2); padding-top: 20px; }

/* ---------------------------------------------------------------- hero */

.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-stage { position: relative; min-height: min(780px, 100svh); display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(28px, 5.1vw, 78px); padding-block: clamp(110px, 14vh, 152px) clamp(52px, 8vh, 82px); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-glow { position: absolute; inset: 0; background: radial-gradient(ellipse at 76% 55%, #14366c79, transparent 57%); }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 70% 54%, #000 12%, transparent 73%); opacity: .64; }
.hero-copy { min-width: 0; position: relative; }
.hero-kicker { display: flex; align-items: center; gap: 9px; margin-bottom: 20px; color: var(--text-2); font: 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.hero-title { font-size: clamp(58px, 7.2vw, 112px); line-height: .96; font-weight: 620; letter-spacing: -.065em; color: #f5f8ff; }
:lang(zh) .hero-title { letter-spacing: -.065em; line-height: 1.06; }
.hero-lead { max-width: 28em; margin-top: 24px; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.65; color: var(--text-2); }
.hero-lead > span { display: block; text-wrap: balance; }
.hero-lead em { display: block; margin-top: 4px; color: var(--text); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-meta { margin-top: 17px; color: var(--text-2); font: 12px/1.5 var(--mono); }
.hero-window { min-width: 0; position: relative; margin: 0; }
.hero-frame { overflow: hidden; border-radius: 16px; background: #121a29; border: 1px solid #394a63; box-shadow: 0 25px 80px #0008, 0 0 45px #2f7bff19; }
.hero-shot { aspect-ratio: 1952 / 1342; overflow: hidden; }
.hero-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-window figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding-block-start: 12px; color: var(--text-2); font: 11px/1.5 var(--mono); }
.hero-window figcaption span:first-child { color: #b7d4ff; }
.nav-account { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); font-size: 13px; text-decoration: none; white-space: nowrap; }
.nav-account:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
#account-help { scroll-margin-top: 90px; }

/* ---------------------------------------------------------------- numbers */

.numbers { position: relative; z-index: 2; padding: clamp(72px, 9vw, 128px) 0; border-block: 1px solid var(--line); background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.num { padding: 8px clamp(16px, 2.4vw, 36px); border-left: 1px solid var(--line); }
.num:first-child { border-left: 0; padding-left: 0; }
.num:nth-child(2) { --d: 0.08s; }
.num:nth-child(3) { --d: 0.16s; }
.num:nth-child(4) { --d: 0.24s; }
.num-value { display: flex; align-items: baseline; font-size: clamp(3rem, 6.6vw, 6rem); line-height: 1; font-weight: 500; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff, #9fb2d1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num-value small { font-size: 0.42em; letter-spacing: -0.02em; margin-left: 0.08em; }
.num-label { margin-top: 18px; font-size: 15px; font-weight: 550; color: var(--text); }
.num-note { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--text-3); max-width: 18em; }

/* ---------------------------------------------------------------- manifesto */

.manifesto { padding: var(--section-y) 0; }
.manifesto-text { max-width: 22em; font-size: clamp(1.75rem, 4.2vw, 3.6rem); line-height: 1.32; font-weight: 550; letter-spacing: -0.03em; text-wrap: pretty; }
:lang(zh) .manifesto-text { max-width: 19em; line-height: 1.5; letter-spacing: -0.01em; }
.manifesto .w { color: var(--text); transition: color 0.5s var(--ease), text-shadow 0.5s; }
html.js:not(.reduced) .manifesto .w { color: #262c38; }
html.js:not(.reduced) .manifesto .w.on { color: var(--text); }
html.js:not(.reduced) .manifesto .w.lead-edge { color: var(--seam-hi); text-shadow: 0 0 24px rgba(47, 123, 255, 0.6); }

/* ---------------------------------------------------------------- sections */

.section { position: relative; padding: var(--section-y) 0; }
.section-head { margin-bottom: clamp(48px, 6vw, 88px); }
.section-head .lead { margin-top: clamp(18px, 2vw, 28px); }
.section-head-center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head-center .eyebrow { justify-content: center; }
/* Each section opens with a faint seam — the motif repeated as a divider. */
.section::before { content: ""; position: absolute; top: 0; left: 50%; width: min(1240px, 90vw); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent); }
.numbers + .manifesto + .section::before, .tour::before { background: linear-gradient(90deg, transparent, rgba(47, 123, 255, 0.4), transparent); }

/* ---------------------------------------------------------------- tour */

.tour-body { display: grid; grid-template-columns: minmax(260px, 4fr) 8fr; gap: clamp(32px, 4vw, 64px); align-items: start; }
.tour-tabs { display: grid; gap: 2px; counter-reset: tour; }
.tour-tab { position: relative; display: grid; grid-template-columns: 34px 1fr; column-gap: 8px; width: 100%; padding: 16px 0 18px; text-align: left; border-top: 1px solid var(--line); color: var(--text-3); transition: color 0.3s; }
.tour-tab:hover { color: var(--text-2); }
.tour-idx { font-family: var(--mono); font-size: 12px; padding-top: 4px; letter-spacing: 0.06em; }
.tour-name { font-size: 18px; font-weight: 550; letter-spacing: -0.015em; }
.tour-desc { grid-column: 2; display: grid; grid-template-rows: 0fr; overflow: hidden; font-size: 14.5px; line-height: 1.65; color: var(--text-2); opacity: 0; transition: grid-template-rows 0.6s var(--ease), opacity 0.4s, margin 0.6s var(--ease); }
.tour-desc { display: block; max-height: 0; }
.tour-tab[aria-selected="true"] { color: var(--text); }
.tour-tab[aria-selected="true"] .tour-idx { color: var(--seam-hi); }
.tour-tab[aria-selected="true"] .tour-desc { max-height: 9em; opacity: 1; margin-top: 8px; transition: max-height 0.7s var(--ease), opacity 0.6s 0.1s, margin 0.6s var(--ease); }
.tour-bar { position: absolute; left: 0; right: 0; top: -1px; height: 1px; overflow: hidden; }
.tour-bar i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--seam), var(--seam-hi)); box-shadow: 0 0 8px var(--seam); }
.tour-tab[aria-selected="true"] .tour-bar i { transform: scaleX(1); }
.tour.is-auto .tour-tab[aria-selected="true"] .tour-bar i { animation: fill var(--dur, 7s) linear forwards; }
.tour.is-paused .tour-tab[aria-selected="true"] .tour-bar i { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.tour-stage { position: sticky; top: 104px; }
.tour-window { position: relative; display: block; width: 100%; aspect-ratio: 1952 / 1342; border-radius: 14px; overflow: hidden; background: #1c1c1e; box-shadow: 0 0 0 1px var(--line-2), 0 40px 100px -40px rgba(0, 0, 0, 0.9), 0 0 0 10px rgba(255, 255, 255, 0.02); cursor: zoom-in; }
.tour-frame { position: absolute; inset: 0; opacity: 0; transform: scale(1.015); transition: opacity 0.7s var(--ease), transform 1.2s var(--ease); }
.tour-frame.is-on { opacity: 1; transform: none; }
.tour-frame img, .tour-frame picture { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
.tour-zoom { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--text); background: rgba(5, 7, 11, 0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line-2); opacity: 0; transform: scale(0.85); transition: opacity 0.3s, transform 0.4s var(--ease); }
.tour-window:hover .tour-zoom, .tour-window:focus-visible .tour-zoom { opacity: 1; transform: none; }
.tour-caption { display: none; margin-top: 20px; font-size: 15.5px; line-height: 1.7; color: var(--text-2); max-width: 40em; min-height: 3.4em; }
.tour-note { margin-top: 16px; font-size: 13px; color: var(--text-3); }

.lightbox { width: min(96vw, 1952px); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: 14px; background: #1c1c1e; overflow: hidden; box-shadow: 0 0 0 1px var(--line-2), 0 60px 160px rgba(0, 0, 0, 0.9); }
.lightbox::backdrop { background: rgba(3, 4, 7, 0.86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lightbox[open] { animation: pop 0.5s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } }
.lightbox img { width: 100%; max-height: 94vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(5, 7, 11, 0.75); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ---------------------------------------------------------------- ai */

.ai-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.tiers { display: grid; gap: 10px; }
.tier { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px 22px; border-radius: var(--r); background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: inset 0 0 0 1px var(--line); }
.tier-lv { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); }
.tier-l1 { --c: var(--led); }
.tier-l2 { --c: var(--seam-hi); }
.tier-l3 { --c: var(--amber); }
.tier-name { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.tier-name span { font-size: 13px; font-weight: 500; color: var(--c); }
.tier-desc { margin-top: 6px; font-size: 14.5px; line-height: 1.65; color: var(--text-2); }
.nots { margin-top: 36px; }
.nots-title { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.nots li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
.nots .ico { width: 18px; height: 18px; margin-top: 3px; color: var(--red); opacity: 0.85; }

.chat { position: sticky; top: 100px; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, #14171f, #0e1118); box-shadow: 0 0 0 1px var(--line-2), 0 50px 120px -50px rgba(0, 0, 0, 0.95), 0 40px 100px -60px rgba(47, 123, 255, 0.5); }
.chat-bar { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.chat-title { display: grid; line-height: 1.3; min-width: 0; }
.chat-title b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-title span { font-size: 12px; color: var(--text-3); }
.chat-bar .chip { margin-left: auto; }
.chat-body { display: flex; flex-direction: column; gap: 14px; height: 520px; padding: 22px 22px 26px; overflow-y: auto; scrollbar-width: none; scroll-behavior: smooth; }
.chat-body::-webkit-scrollbar { display: none; }
.msg { max-width: 92%; font-size: 15px; line-height: 1.7; }
:lang(zh) .msg { line-height: 1.8; }
.msg-user { align-self: flex-end; padding: 10px 16px; border-radius: 18px 18px 6px 18px; background: linear-gradient(180deg, #3a83ff, #2a6fe8); color: #fff; }
.msg-ai { align-self: flex-start; color: var(--text); }
.run-head { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
.run-head .led { width: 6px; height: 6px; }
.run-list { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; color: var(--text-2); min-width: min(380px, 100%); }
.run-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.run-list b { color: var(--led); }
.run-list .ico { width: 16px; height: 16px; }
.run-list code { font-size: 12.5px; color: var(--text); }
.approve { align-self: stretch; padding: 16px; border-radius: 14px; background: linear-gradient(180deg, rgba(47, 123, 255, 0.1), rgba(47, 123, 255, 0.03)); box-shadow: inset 0 0 0 1px rgba(111, 176, 255, 0.28), 0 0 40px -10px rgba(47, 123, 255, 0.35); }
.approve-head { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 550; color: var(--seam-hi); }
.badge { font-family: var(--mono); font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; }
.badge-l2 { color: var(--seam-hi); background: rgba(111, 176, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(111, 176, 255, 0.3); }
.approve-cmd { margin: 12px 0; padding: 12px 14px; border-radius: 10px; font-size: 13px; line-height: 1.6; color: #dfe8ff; background: #070a10; box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.approve-meta { display: grid; gap: 6px; font-size: 13px; }
.approve-meta div { display: grid; grid-template-columns: 56px 1fr; gap: 10px; }
.approve-meta dt { color: var(--text-3); }
.approve-meta dd { color: var(--text-2); }
.approve-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.approve.is-decided .approve-actions { display: none; }
.approve-result { display: none; margin-top: 12px; font-size: 13px; font-weight: 550; }
.approve.is-approved .approve-head { color: var(--led); }
.approve.is-rejected { background: rgba(255, 255, 255, 0.02); box-shadow: inset 0 0 0 1px var(--line-2); }
.approve.is-rejected .approve-head { color: var(--text-3); }
.approve.is-rejected .approve-cmd { opacity: 0.5; text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.3); }
.msg-out { align-self: stretch; max-width: none; }
.msg-out pre { padding: 14px 16px; border-radius: 12px; background: #070a10; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; line-height: 1.75; color: #c9d6ee; overflow-x: auto; tab-size: 8; }
.out-line { display: block; }
.out-line:last-child { color: #fff; }
.exit { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--led); }
.exit .led { width: 6px; height: 6px; }
.msg code { font-size: 0.88em; }
.chat-foot { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.chat-model { font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.chat-placeholder { flex: 1; min-width: 0; font-size: 14px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-replay { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: color 0.25s, background-color 0.25s; }
.chat-replay:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.chat-replay .ico { width: 15px; height: 15px; }
/* Demo choreography: steps are hidden until site.js reveals them; without JS the approve path shows in full. */
html:not(.js) [data-step="declined"] { display: none; }
html:not(.js) .approve-actions, html:not(.js) .chat-replay { display: none; }
html.js [data-step] { display: none; }
html.js [data-step].is-shown { display: block; }
html.js:not(.reduced) [data-step].is-shown { animation: rise 0.6s var(--ease) both; }
html.reduced .chat-body { scroll-behavior: auto; }
html.js:not(.reduced) .msg-user.is-shown { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.caret { display: inline-block; width: 0.55em; height: 1.05em; margin-left: 2px; vertical-align: -0.16em; background: var(--seam-hi); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.typing { display: inline-flex; gap: 4px; padding: 6px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: bounce 1.2s var(--ease-io) infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }

/* ---------------------------------------------------------------- terminal */

.term-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.term {
  --t-bg: #0b1220; --t-bar: #0f182b; --t-fg: #d6e2ff; --t-dim: #7d8db0; --t-prompt: #6fb0ff; --t-ok: #3be07a; --t-cursor: #6fb0ff; --t-line: rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  overflow: hidden;
  background: var(--t-bg);
  box-shadow: 0 0 0 1px var(--line-2), 0 50px 120px -50px rgba(0, 0, 0, 0.95);
  transition: background-color 0.6s var(--ease), box-shadow 0.6s;
}
.term[data-theme="graphite"] { --t-bg: #131313; --t-bar: #1b1b1b; --t-fg: #e6e6e6; --t-dim: #8a8a8a; --t-prompt: #c8c8c8; --t-ok: #8fd18f; --t-cursor: #e6e6e6; }
.term[data-theme="light"] { --t-bg: #ffffff; --t-bar: #ececec; --t-fg: #1d1d1f; --t-dim: #6e6e73; --t-prompt: #0a66ff; --t-ok: #1f8f3a; --t-cursor: #1d1d1f; --t-line: rgba(0, 0, 0, 0.08); }
.term[data-theme="solarized"] { --t-bg: #002b36; --t-bar: #073642; --t-fg: #93a1a1; --t-dim: #586e75; --t-prompt: #268bd2; --t-ok: #859900; --t-cursor: #b58900; }
.term[data-theme="nord"] { --t-bg: #2e3440; --t-bar: #3b4252; --t-fg: #d8dee9; --t-dim: #7b88a1; --t-prompt: #88c0d0; --t-ok: #a3be8c; --t-cursor: #eceff4; }
.term-bar { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--t-bar); border-bottom: 1px solid var(--t-line); transition: background-color 0.6s var(--ease); }
.term-bar .lights { margin-right: 6px; }
.term-tab { font-family: var(--mono); font-size: 12px; padding: 5px 12px; border-radius: 7px; color: var(--t-dim); transition: color 0.6s; }
.term-tab.is-on { color: var(--t-fg); background: color-mix(in srgb, var(--t-fg) 9%, transparent); }
.term-screen { position: relative; height: 420px; padding: 18px 20px 66px; font-family: var(--mono); font-size: 13.5px; line-height: 1.72; color: var(--t-fg); overflow: hidden; transition: color 0.6s; }
.term-lines { display: flex; flex-direction: column; }
.tl { white-space: pre; overflow: hidden; text-overflow: clip; }
.tl-cmd::before { content: "root@ubuntu-hk:~# "; color: var(--t-prompt); transition: color 0.6s; }
.tl-out { color: var(--t-dim); transition: color 0.6s; }
.tl-ok { color: var(--t-fg); }
.tl-ok::first-letter { color: var(--t-ok); }
.tl-pw { color: var(--t-fg); }
.tl-pw::after { content: "••••••••"; color: var(--t-dim); }
html.js:not(.reduced) .tl { display: none; }
html.js:not(.reduced) .tl.is-shown { display: block; }
html.js:not(.reduced) .tl-pw::after { content: none; }
html.js:not(.reduced) .tl-pw.is-done::after { content: "••••••••"; }
.term-secure { position: absolute; left: 20px; right: 20px; bottom: 16px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 9px; font-family: var(--sans); font-size: 12.5px; color: var(--t-fg); background: color-mix(in srgb, var(--t-ok) 12%, var(--t-bg)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t-ok) 35%, transparent); }
.term-secure .ico { width: 15px; height: 15px; color: var(--t-ok); }
html.js:not(.reduced) .term-secure { opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
html.js:not(.reduced) .term-secure.is-shown { opacity: 1; transform: none; }
.term-cursor { display: inline-block; width: 0.6em; height: 1.15em; vertical-align: -0.2em; background: var(--t-cursor); animation: blink 1s steps(1) infinite; }

.themes-label { font-size: 14px; color: var(--text-3); margin-bottom: 14px; }
.themes { display: flex; flex-wrap: wrap; gap: 8px; }
.theme { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 10px; border-radius: 999px; font-size: 13.5px; color: var(--text-2); background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line-2); transition: color 0.25s, background-color 0.25s, box-shadow 0.25s; }
.theme:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.theme[aria-pressed="true"] { color: var(--text); background: rgba(47, 123, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(111, 176, 255, 0.5); }
.theme i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.theme-midnight i { background: linear-gradient(135deg, #0b1220 50%, #6fb0ff 50%); }
.theme-graphite i { background: linear-gradient(135deg, #131313 50%, #c8c8c8 50%); }
.theme-light i { background: linear-gradient(135deg, #ffffff 50%, #0a66ff 50%); }
.theme-solarized i { background: linear-gradient(135deg, #002b36 50%, #b58900 50%); }
.theme-nord i { background: linear-gradient(135deg, #2e3440 50%, #88c0d0 50%); }
.feats { margin-top: 40px; display: grid; }
.feats li { padding: 18px 0; border-top: 1px solid var(--line); }
.feat-name { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.feat-desc { margin-top: 4px; font-size: 14.5px; line-height: 1.65; color: var(--text-2); }

/* ---------------------------------------------------------------- health */

.health-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.health .section-head { margin-bottom: 0; }
.hcard { padding: clamp(22px, 3vw, 36px); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 100px -50px rgba(0, 0, 0, 0.9); }
.hcard-cap { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 18px; }
.segs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, 0.35); box-shadow: inset 0 0 0 1px var(--line); }
.seg { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 6px 8px; border-radius: 10px; font-size: 13px; color: var(--text-2); text-align: center; transition: color 0.25s, background-color 0.3s, box-shadow 0.3s; }
.seg:hover { color: var(--text); }
.seg[aria-pressed="true"] { color: var(--text); background: var(--panel-3); box-shadow: inset 0 0 0 1px var(--line-2), 0 6px 16px -8px rgba(0, 0, 0, 0.8); }
.hstates { display: grid; margin-top: 26px; }
.hstate { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.45s var(--ease), transform 0.6s var(--ease), visibility 0s 0.45s; }
.hstate.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), visibility 0s; }
.hstate-title { display: flex; align-items: center; gap: 12px; font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; letter-spacing: -0.02em; }
.hstate-title .dot { width: 11px; height: 11px; }
.hstate-desc { margin-top: 10px; font-size: 15px; line-height: 1.75; color: var(--text-2); min-height: 5.25em; }
.hstate-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.hstate-metrics div { padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line); }
.hstate-metrics dt { font-size: 12px; color: var(--text-3); }
.hstate-metrics dd { margin-top: 4px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hstate[data-state="alert"] .hstate-metrics div:nth-child(2) dd { color: var(--red); }
.hstate[data-state="check"] .hstate-metrics div:first-child dd { color: var(--amber); }
.hcard-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.7; color: var(--text-3); }

/* ---------------------------------------------------------------- security */

.flow {
  display: grid;
  grid-template-columns: 1fr minmax(120px, 1.3fr) 1fr;
  grid-template-rows: auto 72px auto;
  grid-template-areas: "device main server" "ai . ." "model . ghost";
  align-items: center;
  max-width: 980px;
  margin: 0 auto clamp(56px, 7vw, 96px);
}
.flow-node { position: relative; display: grid; gap: 4px; padding: 18px 20px; border-radius: var(--r); background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: inset 0 0 0 1px var(--line-2); }
.flow-cap { font-size: 12.5px; color: var(--text-3); }
.flow-node b { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.flow-device { grid-area: device; box-shadow: inset 0 0 0 1px rgba(111, 176, 255, 0.45), 0 0 50px -12px rgba(47, 123, 255, 0.55); }
.flow-server { grid-area: server; }
.flow-server::after { content: ""; position: absolute; right: 18px; top: 20px; width: 7px; height: 7px; border-radius: 50%; background: var(--led); box-shadow: 0 0 10px var(--led); }
.flow-model { grid-area: model; }
.flow-ghost { grid-area: ghost; background: transparent; box-shadow: inset 0 0 0 1px var(--line); border: 1px dashed var(--line-2); }
.flow-ghost .flow-cap { text-decoration: line-through; text-decoration-color: var(--red); }
.flow-ghost b { color: var(--text-3); }
.flow-wire { position: relative; align-self: center; }
.flow-wire-main { grid-area: main; height: 2px; margin: 0 -1px; background: linear-gradient(90deg, rgba(47, 123, 255, 0.85), rgba(111, 176, 255, 0.5)); box-shadow: 0 0 14px rgba(47, 123, 255, 0.6); }
.flow-wire-main i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 2px var(--seam-hi); offset-path: none; animation: travel 2.8s linear infinite; }
.flow-wire-main i:nth-of-type(2) { animation-delay: -0.93s; }
.flow-wire-main i:nth-of-type(3) { animation-delay: -1.86s; animation-direction: reverse; background: var(--led); box-shadow: 0 0 12px 2px var(--led); }
@keyframes travel { from { left: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { left: calc(100% - 8px); opacity: 0; } }
.flow-label { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--seam-hi); white-space: nowrap; }
.flow-wire-ai { grid-area: ai; justify-self: start; margin-left: 32px; width: 2px; height: 100%; background: repeating-linear-gradient(180deg, var(--text-3) 0 4px, transparent 4px 9px); }
.flow-wire-ai .flow-label { left: 16px; bottom: auto; top: 50%; transform: translateY(-50%); color: var(--text-2); }
.flow-wire-ai i { position: absolute; left: -3px; top: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--text-2); animation: drop 3.2s var(--ease-io) infinite; }
@keyframes drop { from { top: 0; opacity: 0; } 15%, 85% { opacity: 1; } to { top: calc(100% - 8px); opacity: 0; } }
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-radius: var(--r-lg); overflow: hidden; background: var(--line); box-shadow: 0 0 0 1px var(--line); }
.sec { padding: clamp(24px, 3vw, 40px); background: var(--bg); transition: background-color 0.4s; }
.sec:hover { background: var(--bg-2); }
.sec:nth-child(3n + 2) { --d: 0.08s; }
.sec:nth-child(3n) { --d: 0.16s; }
.sec .ico { color: var(--seam-hi); }
.sec-name { margin-top: 22px; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.sec-desc { margin-top: 8px; font-size: 14.5px; line-height: 1.7; color: var(--text-2); }

/* ---------------------------------------------------------------- platforms */

.plat-stage { position: relative; padding-right: clamp(80px, 14vw, 200px); }
.plat-mac { border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-2), 0 50px 120px -50px rgba(0, 0, 0, 0.95); }
.plat-mac img { width: 100%; }
.phone { position: absolute; right: 0; bottom: -48px; width: clamp(200px, 23vw, 300px); aspect-ratio: 9 / 19.4; padding: 10px; border-radius: clamp(36px, 4.2vw, 52px); background: linear-gradient(145deg, #3a3f4a, #15181f 40%, #262a33); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 60px 120px -30px rgba(0, 0, 0, 0.95), 0 30px 80px -40px rgba(47, 123, 255, 0.5); }
.phone-screen { position: relative; height: 100%; padding: 0 12px; border-radius: clamp(28px, 3.5vw, 43px); overflow: hidden; background: #000; font-size: clamp(9px, 0.95vw, 12px); display: flex; flex-direction: column; gap: 0.7em; }
.phone-status { display: flex; align-items: center; justify-content: space-between; height: 3.6em; padding: 0 1.2em; font-size: 1.05em; }
.phone-island { position: absolute; left: 50%; top: 0.9em; width: 34%; height: 2.6em; margin-left: -17%; border-radius: 99px; background: #0a0a0a; box-shadow: inset 0 0 0 1px #1d1d1d; }
.phone-sig { width: 2.2em; height: 0.95em; border-radius: 3px; box-shadow: inset 0 0 0 1.2px #fff; position: relative; }
.phone-sig::after { content: ""; position: absolute; inset: 2px 5px 2px 2px; border-radius: 1.5px; background: #fff; }
.phone-h { font-size: 2.2em; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; padding: 0.2em 0.1em 0.2em; }
:lang(zh) .phone-h { letter-spacing: 0; }
.pcard { padding: 0.95em 1em; border-radius: 1.2em; background: #1c1c1e; }
.pcard p { display: flex; justify-content: space-between; align-items: center; font-size: 1.15em; }
.pmeta { display: block; color: #8e8e93; font-size: 0.92em; line-height: 1.45; margin-top: 0.3em; }
.pill { font-size: 0.78em; font-weight: 600; padding: 0.2em 0.65em; border-radius: 99px; }
.pill-on { color: var(--led); background: rgba(59, 224, 122, 0.14); }
.pbars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6em; margin-top: 0.8em; }
.pbars span { height: 0.45em; border-radius: 99px; background: #2c2c2e; overflow: hidden; }
.pbars i { display: block; height: 100%; border-radius: inherit; background: #0a84ff; }
.pbars i.warn { background: var(--amber); }
.w17 { width: 17%; } .w87 { width: 87%; } .w51 { width: 51%; }
.plabels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6em; margin-top: 0.45em; color: #8e8e93; font-size: 0.85em; }
.prings { display: flex; align-items: center; gap: 0.9em; margin-top: 0.7em; }
.prings .pmeta { margin: 0; white-space: nowrap; }
.ring { --v: 25; --c: var(--led); position: relative; display: grid; place-items: center; width: 3.6em; height: 3.6em; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--v) * 1%), #2c2c2e 0); flex: none; }
.ring::before { content: ""; position: absolute; inset: 0.32em; border-radius: 50%; background: #1c1c1e; }
.ring b { position: relative; font-size: 0.85em; }
.ring-mem { --c: #ff9f0a; }
.r25 { --v: 25; } .r36 { --v: 36; } .r20 { --v: 20; } .r54 { --v: 54; }
.pdock { display: grid; gap: 0.55em; margin-top: 0.7em; }
.pdock span { display: flex; align-items: center; gap: 0.6em; color: #d1d1d6; font-size: 0.92em; }
.pdock span::before { content: ""; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--led); flex: none; }
.pdock em { margin-left: auto; color: #8e8e93; font-variant-numeric: tabular-nums; }
.ptabbar { margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0.9em 0 2.2em; color: #8e8e93; font-size: 0.85em; text-align: center; border-top: 1px solid #1f1f1f; }
.ptabbar .is-on { color: #0a84ff; }
.plat-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); margin-top: clamp(80px, 9vw, 120px); max-width: 920px; }
.plat-cols p { font-size: 15.5px; line-height: 1.75; color: var(--text-2); }
.plat-cols .plat-os { margin-bottom: 10px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; color: var(--text); }
.plat-cols > div:nth-child(2) { --d: 0.1s; }

/* ---------------------------------------------------------------- more */

.more-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.more-grid li { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 16px 20px; border-radius: 14px; font-size: 15px; color: var(--text); background: rgba(255, 255, 255, 0.02); box-shadow: inset 0 0 0 1px var(--line); transition: background-color 0.3s, box-shadow 0.3s, transform 0.5s var(--ease); }
.more-grid li:hover { background: rgba(47, 123, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(111, 176, 255, 0.3); transform: translateY(-2px); }
.more-grid .ico { color: var(--seam-hi); }

/* ---------------------------------------------------------------- faq */

.faq-grid { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq .section-head { position: sticky; top: 110px; margin-bottom: 0; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; cursor: pointer; list-style: none; font-size: clamp(16px, 1.4vw, 19px); font-weight: 550; letter-spacing: -0.01em; transition: color 0.25s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--seam-hi); }
.qa summary i { position: relative; width: 14px; height: 14px; flex: none; }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform 0.45s var(--ease); }
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i::after { transform: rotate(0deg); }
.qa-a { padding: 0 48px 26px 0; font-size: 15.5px; line-height: 1.8; color: var(--text-2); }
.qa[open] .qa-a { animation: rise 0.5s var(--ease); }

/* ---------------------------------------------------------------- finale */

.finale { position: relative; padding: clamp(120px, 16vw, 240px) 0 clamp(100px, 12vw, 180px); text-align: center; overflow: hidden; }
.finale::before { content: ""; position: absolute; left: 50%; top: 46%; width: 1100px; height: 700px; transform: translate(-50%, -50%); background: radial-gradient(50% 50% at 50% 50%, rgba(47, 123, 255, 0.24), transparent 70%); pointer-events: none; }
.finale-seam { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--seam) 30%, var(--seam-hi) 50%, var(--seam) 70%, transparent); box-shadow: 0 0 24px 2px rgba(47, 123, 255, 0.6); }
.finale-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.finale-logo { width: clamp(120px, 15vw, 188px); height: auto; border-radius: 22.5%; box-shadow: 0 40px 100px -30px rgba(47, 123, 255, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08); animation: float 7s var(--ease-io) infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.finale-title { margin-top: clamp(40px, 5vw, 64px); font-size: clamp(2.3rem, 6.4vw, 5.6rem); line-height: 1.05; font-weight: 600; letter-spacing: -0.045em; text-wrap: balance; background: linear-gradient(180deg, #fff 35%, #a8b8d4); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.06em; }
:lang(zh) .finale-title { letter-spacing: -0.03em; line-height: 1.15; }
.finale .lead { margin-top: 20px; }
.finale-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* ---------------------------------------------------------------- footer */

.footer { padding: 56px 0 48px; border-top: 1px solid var(--line); background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; }
.footer-brand p { margin-top: 12px; font-size: 14px; color: var(--text-3); }
.footer-links { display: flex; gap: 24px; align-self: start; }
.footer-links a { font-size: 14px; color: var(--text-2); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-legal { grid-column: 1 / -1; max-width: 62em; font-size: 12px; line-height: 1.75; color: var(--text-3); }
.footer-copy { grid-column: 1 / -1; font-family: var(--mono); font-size: 12px; color: var(--text-3); }

/* ---------------------------------------------------------------- legal */

.legal { padding-top: clamp(140px, 16vw, 200px); padding-bottom: var(--section-y); }
.legal-head { padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.legal-date { margin-top: 18px; font-family: var(--mono); font-size: 12.5px; color: var(--text-3); }
.legal-grid { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 6vw, 96px); margin-top: clamp(40px, 5vw, 64px); }
.legal-toc ol { position: sticky; top: 100px; display: grid; gap: 2px; counter-reset: toc; }
.legal-toc a { display: flex; gap: 10px; padding: 7px 0; font-size: 14px; color: var(--text-3); transition: color 0.2s; }
.legal-toc a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: 11.5px; padding-top: 2px; color: var(--text-3); }
.legal-toc a:hover { color: var(--text); }
.legal-body { min-width: 0; max-width: 44em; counter-reset: sec; overflow-wrap: anywhere; }
.legal-table { max-width: 100%; overflow-x: auto; margin: 18px 0; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.7; }
.legal-table th, .legal-table td { min-width: 120px; padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-body a { color: var(--seam-hi); text-decoration: underline; text-underline-offset: 3px; }
.legal-body section { padding-bottom: 40px; scroll-margin-top: 100px; }
.legal-body h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 14px; }
.legal-body h2::before { counter-increment: sec; content: counter(sec, decimal-leading-zero); display: block; margin-bottom: 8px; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--seam-hi); letter-spacing: 0.1em; }
.legal-body p, .legal-body li { font-size: 15.5px; line-height: 1.85; color: var(--text-2); }
.legal-body p + p, .legal-body p + ul, .legal-body ul + p { margin-top: 12px; }
.legal-body ul { display: grid; gap: 8px; }
.legal-body li { position: relative; padding-left: 20px; }
.legal-body li::before { content: ""; position: absolute; left: 2px; top: 0.82em; width: 8px; height: 1.5px; background: var(--seam-hi); }
.legal-body code { font-size: 0.9em; color: var(--text); }

/* ---------------------------------------------------------------- 404 */

.nf-main { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-block: 60px; }
.nf-main .brand { position: absolute; top: 24px; }
.nf-code { font-family: var(--mono); font-size: clamp(5rem, 18vw, 13rem); line-height: 1; font-weight: 500; letter-spacing: -0.06em; color: #1c2230; }
.nf-seam { position: relative; display: block; width: 100%; max-width: 640px; height: 2px; margin: 8px 0 40px; background: linear-gradient(90deg, var(--seam), var(--seam-hi) 60%, transparent); box-shadow: 0 0 16px var(--seam); }
.nf-seam .led { position: absolute; right: 30%; top: 12px; }
.nf-main .lead { margin-top: 12px; }
.nf-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1100px) {
  .nav-links ul { gap: 0; }
  .nav-links a { padding: 8px 10px; }
  .tour-body { grid-template-columns: 1fr; }
  .tour-stage { position: relative; top: 0; order: -1; }
  .tour-tabs { grid-template-columns: repeat(4, 1fr); column-gap: 20px; }
  .tour-desc { display: none; }
  .tour-tab { grid-template-columns: 28px 1fr; padding: 14px 0; }
  .tour-name { font-size: 15px; }
  .tour-caption { display: block; }
  .ai-grid, .term-grid { grid-template-columns: 1fr; }
  .chat { position: relative; top: 0; }
  .health-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq .section-head { position: static; margin-bottom: 16px; }
  .more-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .nav-links, .nav-soon { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-end { margin-left: auto; }
  .numbers-grid { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .num:nth-child(3) { border-left: 0; padding-left: 0; }
  .sec-grid { grid-template-columns: 1fr 1fr; }
  .legal-grid { grid-template-columns: 1fr; }
  .legal-toc { display: none; }
  .plat-stage { padding-right: 0; padding-bottom: 120px; }
  .phone { right: 4%; bottom: 0; width: clamp(170px, 34vw, 240px); }
  .phone-screen { font-size: clamp(8px, 1.5vw, 11px); }
}

@media (max-width: 820px) {
  .hero-stage { grid-template-columns: minmax(0, 1fr); min-height: auto; }
  .hero-window { max-width: 690px; }
}

@media (max-width: 640px) {
  :root { --section-y: 96px; }
  .br-m { display: initial; }
  .hero-stage { min-height: auto; padding-block: 92px 42px; gap: 32px; }
  .hero-title { font-size: clamp(44px, 11vw, 68px); }
  .hero-lead { font-size: 16px; margin-top: 16px; }
  .hero-kicker { margin-bottom: 14px; font-size: 11px; }
  .hero-cta { margin-top: 20px; }
  .hero-cta .btn { min-height: 44px; padding-inline: 13px; }
  .hero-meta { margin-top: 13px; }
  .hero-frame { border-radius: 12px; }
  .hero-shot { aspect-ratio: 1000 / 870; }
  .hero-shot img { object-position: top; }
  .numbers-grid { grid-template-columns: 1fr; row-gap: 0; }
  .num { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: center; padding: 22px 0; border-left: 0; border-top: 1px solid var(--line); }
  .num:first-child { border-top: 0; }
  .num-value { grid-row: span 2; font-size: 3.4rem; min-width: 2.4ch; }
  .num-label { margin: 0; }
  .num-note { margin-top: 2px; font-size: 13.5px; }
  .tour-tabs { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .tour-tabs::-webkit-scrollbar { display: none; }
  .tour-tabs li { flex: none; scroll-snap-align: start; }
  .tour-tab { display: inline-flex; gap: 8px; align-items: center; padding: 9px 14px; border: 0; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; }
  .tour-tab[aria-selected="true"] { background: rgba(47, 123, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(111, 176, 255, 0.5); }
  .tour-idx { padding: 0; }
  .tour-bar { top: auto; bottom: 0; left: 14px; right: 14px; }
  .tour-window { aspect-ratio: 1000 / 870; border-radius: 12px; }
  .tour-frame img, .tour-frame picture { object-position: 0 0; }
  .tier { grid-template-columns: 38px 1fr; padding: 16px; gap: 14px; }
  .tier-lv { width: 38px; height: 38px; }
  .chat-body { height: 500px; padding: 18px 16px 22px; }
  .chat-bar .chip { display: none; }
  .msg { max-width: 100%; font-size: 14.5px; }
  .approve-meta div { grid-template-columns: 48px 1fr; }
  .term-screen { height: 380px; font-size: 11px; padding: 14px 14px 64px; }
  .term-secure { left: 14px; right: 14px; }
  .term-tab:not(.is-on) { display: none; }
  .tl { white-space: pre-wrap; word-break: break-all; }
  .tour-stage { order: 0; }
  .tour-body { gap: 20px; }
  .segs { grid-template-columns: 1fr 1fr; }
  .hstate-metrics dd { font-size: 18px; }
  .hstate-metrics div { padding: 12px; }
  .flow { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "device" "main" "server" "ai" "model" "ghost"; gap: 0; max-width: 420px; }
  .flow-wire-main { width: 2px; height: 72px; margin: 0 auto; background: linear-gradient(180deg, var(--seam), var(--seam-hi)); }
  .flow-wire-main i { left: -3px; animation-name: travel-v; }
  @keyframes travel-v { from { top: 0; opacity: 0; } 10%, 90% { opacity: 1; } to { top: calc(100% - 8px); opacity: 0; } }
  .flow-wire-main .flow-label, .flow-wire-ai .flow-label { left: 18px; bottom: auto; top: 50%; transform: translateY(-50%); }
  .flow-wire-ai { height: 72px; margin: 0 auto; justify-self: center; }
  .flow-ghost { margin-top: 12px; }
  .sec-grid { grid-template-columns: 1fr; }
  .plat-stage { padding-bottom: 80px; }
  .phone { right: 0; width: 50vw; bottom: -40px; }
  .phone-screen { font-size: 2.3vw; }
  .plat-cols { grid-template-columns: 1fr; margin-top: 64px; }
  .more-grid { grid-template-columns: 1fr 1fr; }
  .more-grid li { flex-direction: column; align-items: flex-start; gap: 12px; min-height: 0; padding: 16px; font-size: 14px; }
  .qa-a { padding-right: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .finale-cta .btn { flex: 1 1 100%; }
  .finale-cta { width: 100%; max-width: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
.pmeta-inline { display: inline; margin: 0; }

/* ---------------------------------------------------------------- load-in */

/* First paint: copy rises in line by line and the seam ignites from the centre (transform only, so the scroll-driven opacity stays in charge). */
html.js:not(.reduced) .hero-copy > * { animation: intro .55s var(--ease) both; }
html.js:not(.reduced) .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
html.js:not(.reduced) .hero-copy > :nth-child(3) { animation-delay: 0.2s; }
html.js:not(.reduced) .hero-copy > :nth-child(4) { animation-delay: 0.3s; }
html.js:not(.reduced) .hero-copy > :nth-child(5) { animation-delay: 0.18s; }
html.js:not(.reduced) .seam { animation: ignite 1.6s var(--ease) 0.35s both; }
@keyframes intro { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } }
@keyframes ignite { from { transform: scaleX(0); } }

/* ---------------------------------------------------------------- footer wordmark */

.footer { position: relative; overflow: hidden; }
.footer-mark {
  display: block;
  margin: 8px 0 -0.22em;
  font-size: clamp(4.5rem, 19vw, 18rem);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.065em;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(180deg, #1a2130 0%, #0b0e15 75%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}
