/* Twinwright - site stylesheet.
   Colour carries meaning: cyan = the twin (virtual), copper = the real machine and the real-world actions.
   Tokens first; components only ever use tokens so both themes stay consistent. */

:root {
  --paper: #f5f7f8;
  --surface: #ffffff;
  --sunken: #eaeef1;
  --ink: #0e1318;
  --ink-2: #33404b;
  --steel: #5f6c78;
  --rule: #d5dce2;
  --rule-strong: #b9c3cc;
  --twin: #087f9e;
  --twin-strong: #066a84;
  --twin-soft: #e1f2f6;
  --real: #b5561c;
  --real-strong: #96440f;
  --real-soft: #f7e9df;
  --ok: #1d7446;
  --warn: #9a6100;
  --bad: #b3261e;
  --on-accent: #ffffff;
  --blueprint: #08131b;
  --blueprint-line: rgba(55, 211, 242, 0.09);
  --studio-a: #f1f4f6;
  --studio-b: #dfe5ea;
  --code-bg: #0b1218;
  --code-ink: #d8e2ea;
  --code-dim: #7d8d9b;
  --code-key: #5fd6ef;
  --code-str: #f0b27a;
  --shadow-1: 0 1px 2px rgba(14, 19, 24, 0.06), 0 6px 18px rgba(14, 19, 24, 0.06);
  --shadow-2: 0 2px 6px rgba(14, 19, 24, 0.08), 0 18px 48px rgba(14, 19, 24, 0.12);
  --header-bg: rgba(245, 247, 248, 0.86);

  --font-display: "Archivo", "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-body: "Archivo", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "Martian Mono", ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "PingFang SC",
    "Microsoft YaHei", monospace;

  --step--2: 0.72rem;
  --step--1: 0.84rem;
  --step-0: 1.03rem;
  --step-1: 1.2rem;
  --step-2: clamp(1.32rem, 1.14rem + 0.7vw, 1.7rem);
  --step-3: clamp(1.75rem, 1.35rem + 1.7vw, 2.7rem);
  --step-4: clamp(2.25rem, 1.55rem + 3.1vw, 4.1rem);

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --radius: 10px;
  --radius-sm: 6px;
  --section-y: clamp(56px, 7vw, 104px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0a0e12;
    --surface: #10161c;
    --sunken: #0d1318;
    --ink: #e6ebf0;
    --ink-2: #b7c2cc;
    --steel: #8794a1;
    --rule: #1e2831;
    --rule-strong: #2c3a46;
    --twin: #3fd3f0;
    --twin-strong: #7fe3f6;
    --twin-soft: #0b2530;
    --real: #f0924a;
    --real-strong: #f6ae74;
    --real-soft: #2c1a0e;
    --ok: #55c486;
    --warn: #e0a640;
    --bad: #f07167;
    --on-accent: #06090c;
    --blueprint: #060d13;
    --studio-a: #161d24;
    --studio-b: #0d1217;
    --code-bg: #070c10;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 18px rgba(0, 0, 0, 0.3);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.45), 0 18px 48px rgba(0, 0, 0, 0.45);
    --header-bg: rgba(10, 14, 18, 0.82);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #0a0e12;
  --surface: #10161c;
  --sunken: #0d1318;
  --ink: #e6ebf0;
  --ink-2: #b7c2cc;
  --steel: #8794a1;
  --rule: #1e2831;
  --rule-strong: #2c3a46;
  --twin: #3fd3f0;
  --twin-strong: #7fe3f6;
  --twin-soft: #0b2530;
  --real: #f0924a;
  --real-strong: #f6ae74;
  --real-soft: #2c1a0e;
  --ok: #55c486;
  --warn: #e0a640;
  --bad: #f07167;
  --on-accent: #06090c;
  --blueprint: #060d13;
  --studio-a: #161d24;
  --studio-b: #0d1217;
  --code-bg: #070c10;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 18px rgba(0, 0, 0, 0.3);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.45), 0 18px 48px rgba(0, 0, 0, 0.45);
  --header-bg: rgba(10, 14, 18, 0.82);
  color-scheme: dark;
}

/* ---- base ------------------------------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
/* the hidden attribute wins over a component's display (.stack, .grid ...) */
[hidden] { display: none !important; }
/* a long unbroken token in running text (%LOCALAPPDATA%\Programs\..., a URL) breaks rather than widen a phone page */
p, li, dd, dt, h1, h2, h3, figcaption, blockquote { overflow-wrap: anywhere; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "ss01" 0;
  -webkit-font-smoothing: antialiased;
}
:lang(zh) body, body:lang(zh) { line-height: 1.75; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--twin-strong); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--twin); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 750;
  font-stretch: 118%;
  letter-spacing: -0.012em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: 0.01em; line-height: 1.22; font-stretch: 100%; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); font-weight: 700; font-stretch: 108%; }
h4 { font-size: var(--step-1); font-weight: 700; font-stretch: 100%; }
p { margin: 0; }
p + p { margin-top: 0.9em; }
ul, ol { margin: 0; padding-left: 1.2em; }
li + li { margin-top: 0.35em; }
code, kbd, samp, pre { font-family: var(--font-mono); font-size: 0.86em; font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
:not(pre) > code {
  background: var(--sunken);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.05em 0.35em;
  font-size: 0.82em;
}
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper);
  padding: 10px 14px; border-radius: var(--radius-sm); text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---- layout ---------------------------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section.tight { padding-block: calc(var(--section-y) * 0.6); }
.section.alt { background: var(--surface); border-block: 1px solid var(--rule); }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .lead { color: var(--ink-2); font-size: var(--step-1); line-height: 1.55; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--steel);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.7; }
.eyebrow.twin { color: var(--twin); }
.eyebrow.real { color: var(--real); }
.grid { display: grid; gap: clamp(16px, 2.2vw, 28px); }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: minmax(0, 1fr); } }
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--step-2); margin: 1.6em 0 0.5em; }
.prose h3 { font-size: var(--step-1); margin: 1.4em 0 0.4em; }
.prose p, .prose ul, .prose ol { color: var(--ink-2); }
.prose ul, .prose ol { margin-top: 0.6em; }
.muted { color: var(--steel); }
.small { font-size: var(--step--1); }

/* ---- header ---------------------------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.header-row { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.brand svg { width: 30px; height: 30px; }
.brand-word { font-family: var(--font-display); font-weight: 780; font-stretch: 125%; font-size: 1.06rem; letter-spacing: 0.02em; }
.brand-zh { font-size: 0.8rem; color: var(--steel); font-weight: 500; letter-spacing: 0.08em; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav a {
  color: var(--ink-2); text-decoration: none; font-size: 0.93rem; font-weight: 500; padding: 8px 10px;
  border-radius: var(--radius-sm); white-space: nowrap;
}
/* eight entries: tighter between the menu breakpoint and a wide screen */
@media (max-width: 1360px) { .nav { gap: 0; margin-left: 2px; } .nav a { padding: 8px 7px; font-size: 0.9rem; } .header-row { gap: 12px; } }
.nav a:hover { color: var(--ink); background: var(--sunken); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--twin); border-radius: 0; }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--radius-sm);
  border: 1px solid var(--rule); background: var(--surface); color: var(--ink-2); cursor: pointer; padding: 0;
}
.icon-btn:hover { color: var(--ink); border-color: var(--rule-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.lang-link {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.04em; text-decoration: none;
  color: var(--ink-2); border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 9px 10px;
  background: var(--surface);
}
.lang-link:hover { color: var(--ink); border-color: var(--rule-strong); }
.menu-btn { display: none; }
@media (max-width: 480px) { .brand-zh { display: none; } .header-row { gap: 10px; } .header-tools { gap: 6px; } }
/* the smallest phones (320 px): the word mark narrows so the three header buttons still fit */
@media (max-width: 359px) { .brand { gap: 7px; } .brand-word { font-stretch: 100%; letter-spacing: 0; } .header-row { gap: 6px; } .header-tools { gap: 4px; } html .btn { white-space: normal; max-width: 100%; text-align: center; } }
.mobile-nav { display: none; }
@media (max-width: 1140px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .header-tools .btn { display: none; }
  .mobile-nav[data-open="true"] {
    display: grid; gap: 2px; padding: 10px var(--gutter) 18px; border-top: 1px solid var(--rule);
    background: var(--paper);
  }
  .mobile-nav a { color: var(--ink); text-decoration: none; padding: 11px 4px; border-bottom: 1px solid var(--rule); font-weight: 500; }
  .mobile-nav .btn { margin-top: 12px; justify-self: start; }
}

/* ---- buttons --------------------------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-border: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 650; font-size: 0.97rem; line-height: 1;
  padding: 14px 20px; border-radius: 8px; text-decoration: none; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-border);
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: none; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn.twin { --btn-bg: var(--twin); --btn-fg: var(--on-accent); --btn-border: var(--twin); }
.btn.twin:hover { --btn-bg: var(--twin-strong); --btn-border: var(--twin-strong); }
.btn.real { --btn-bg: var(--real); --btn-fg: var(--on-accent); --btn-border: var(--real); }
.btn.real:hover { --btn-bg: var(--real-strong); --btn-border: var(--real-strong); }
.btn.ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-border: var(--rule-strong); }
.btn.ghost:hover { --btn-border: var(--ink); }
.btn.small { padding: 10px 14px; font-size: 0.88rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---- hero ------------------------------------------------------------------------------------------------ */
.hero { padding-block: clamp(36px, 5vw, 72px) clamp(40px, 5vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero-copy { display: grid; gap: 22px; }
.hero-copy .lead { font-size: var(--step-1); color: var(--ink-2); line-height: 1.55; max-width: 38em; }
.hero-meta { font-family: var(--font-mono); font-size: var(--step--2); color: var(--steel); letter-spacing: 0.03em; }
.hero h1 .accent-twin { color: var(--twin); }
.hero h1 .accent-real { color: var(--real); }
.page-hero { padding-block: clamp(40px, 6vw, 88px) clamp(28px, 4vw, 56px); border-bottom: 1px solid var(--rule); }
.page-hero .wrap { display: grid; gap: 18px; }
.page-hero .lead { font-size: var(--step-1); color: var(--ink-2); max-width: 44em; line-height: 1.55; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 980px) { .page-hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* the twin/real slider: the twin (left) is clipped to --pos, the real machine shows through on the right */
.twinslider {
  --pos: 50%;
  position: relative; margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, var(--studio-a), var(--studio-b));
  border: 1px solid var(--rule); box-shadow: var(--shadow-2); isolation: isolate;
  touch-action: pan-y;
}
.twinslider .ts-layer { position: absolute; inset: 0; }
.twinslider .ts-layer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4% 3% 5%; }
.twinslider .ts-twin {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
  background-color: var(--blueprint);
  background-image:
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px);
  background-size: 28px 28px;
}
.twinslider .ts-divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: linear-gradient(var(--twin), var(--real)); pointer-events: none; z-index: 2;
}
.twinslider .ts-knob {
  position: absolute; top: 50%; left: var(--pos); transform: translate(-50%, -50%); z-index: 3;
  display: flex; align-items: center; gap: 0; pointer-events: none;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; font-weight: 600;
}
.twinslider .ts-knob span { padding: 8px 10px; }
.twinslider .ts-knob .k-twin { background: var(--blueprint); color: #3fd3f0; border: 1px solid #3fd3f0; border-right: 0; border-radius: 999px 0 0 999px; }
.twinslider .ts-knob .k-real { background: var(--surface); color: var(--real); border: 1px solid var(--real); border-left: 0; border-radius: 0 999px 999px 0; }
.twinslider input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 4;
}
.twinslider input[type="range"]:focus-visible + .ts-focus { outline: 2px solid var(--twin); outline-offset: -4px; }
.twinslider .ts-focus { position: absolute; inset: 0; border-radius: 14px; pointer-events: none; z-index: 5; }
.twinslider .ts-tag {
  position: absolute; bottom: 12px; z-index: 2; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 5px 8px; border-radius: 4px;
}
.twinslider .ts-tag.l { left: 12px; color: #3fd3f0; background: rgba(6, 13, 19, 0.7); }
.twinslider .ts-tag.r { right: 12px; color: var(--ink-2); background: var(--header-bg); }
.slider-caption { margin-top: 12px; font-size: var(--step--1); color: var(--steel); }

/* ---- facts strip ----------------------------------------------------------------------------------------- */
.facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.fact { padding: 20px clamp(12px, 2vw, 22px); border-left: 1px solid var(--rule); display: grid; gap: 4px; align-content: start; }
.fact:first-child { border-left: 0; }
.fact b { font-family: var(--font-display); font-stretch: 118%; font-size: 1.35rem; font-weight: 760; line-height: 1.1; }
:lang(zh) .fact b { font-stretch: 100%; }
.fact span { font-size: var(--step--1); color: var(--steel); line-height: 1.4; }
@media (max-width: 1000px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fact { border-left: 0; border-top: 1px solid var(--rule); } .fact:nth-child(-n+2) { border-top: 0; } .fact:nth-child(2n) { border-left: 1px solid var(--rule); } }

/* ---- the journey: feature-control-frame labels ----------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step { display: grid; gap: 14px; align-content: start; padding-top: 18px; border-top: 2px solid var(--rule-strong); }
.step.twin { border-top-color: var(--twin); }
.step.real { border-top-color: var(--real); }
.fcf { display: inline-flex; align-self: start; justify-self: start; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; border: 1px solid currentColor; border-radius: 3px; }
.fcf span { padding: 5px 9px; }
.fcf span + span { border-left: 1px solid currentColor; }
.step.twin .fcf { color: var(--twin); }
.step.real .fcf { color: var(--real); }
.step p { color: var(--ink-2); }
.step .where { font-family: var(--font-mono); font-size: var(--step--2); color: var(--steel); letter-spacing: 0.04em; }

/* ---- cards ----------------------------------------------------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(18px, 2vw, 24px);
  display: grid; gap: 10px; align-content: start;
}
.card h3 { font-size: 1.12rem; font-stretch: 108%; }
:lang(zh) .card h3 { font-stretch: 100%; }
.card p { color: var(--ink-2); font-size: 0.96rem; }
.card .icon { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--twin-soft); color: var(--twin); }
.card .icon svg { width: 20px; height: 20px; }
.card.real-card .icon { background: var(--real-soft); color: var(--real); }
.card .label { font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel); }
.card a.more { font-weight: 600; text-decoration: none; margin-top: 4px; }
.card a.more:hover { text-decoration: underline; }
.card-link { color: inherit; text-decoration: none; transition: border-color 0.15s ease, transform 0.15s ease; }
.card-link:hover { border-color: var(--rule-strong); transform: translateY(-2px); }

/* ---- feature rows ---------------------------------------------------------------------------------------- */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.feature + .feature { margin-top: clamp(48px, 6vw, 88px); }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip .feature-text { order: 2; }
@media (max-width: 900px) { .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); } .feature.flip .feature-text { order: 0; } }
.feature-text { display: grid; gap: 14px; align-content: start; }
.feature-text p { color: var(--ink-2); }
.feature-text ul { color: var(--ink-2); }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule); box-shadow: var(--shadow-1); background: var(--surface); }
.shot img { width: 100%; }
.shot figcaption { font-size: var(--step--1); color: var(--steel); padding: 10px 14px; border-top: 1px solid var(--rule); }
.render { margin: 0; border-radius: var(--radius); background: linear-gradient(160deg, var(--studio-a), var(--studio-b)); border: 1px solid var(--rule); overflow: hidden; }
.render img { width: 100%; padding: 4%; }
.render.blueprint { background-color: var(--blueprint); background-image: linear-gradient(var(--blueprint-line) 1px, transparent 1px), linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px); background-size: 28px 28px; }
.render figcaption { font-size: var(--step--1); color: var(--steel); padding: 0 16px 14px; }
.check-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.check-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; margin: 0; }
.check-list li::before { content: ""; width: 14px; height: 14px; margin-top: 0.3em; border: 2px solid var(--twin); border-radius: 3px; background: linear-gradient(135deg, transparent 45%, var(--twin) 45% 55%, transparent 55%); }
.check-list.real li::before { border-color: var(--real); background: linear-gradient(135deg, transparent 45%, var(--real) 45% 55%, transparent 55%); }

/* ---- specs ----------------------------------------------------------------------------------------------- */
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
@media (max-width: 800px) { .specs { grid-template-columns: minmax(0, 1fr); } }
.spec-group h3 { font-size: 0.8rem; font-family: var(--font-mono); font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--steel); padding: 18px 0 8px; border-bottom: 1px solid var(--rule-strong); font-stretch: 100%; }
.spec-group dl { margin: 0; }
.spec-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.spec-row dt { color: var(--steel); font-size: 0.93rem; }
.spec-row dd { margin: 0; font-size: 0.95rem; }
.spec-row dd .num { font-size: 0.86rem; }
.spec-note { margin-top: 18px; font-size: var(--step--1); color: var(--steel); max-width: 70ch; }
.minispecs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.minispecs div { background: var(--surface); padding: 14px 16px; display: grid; gap: 2px; }
.minispecs b { font-family: var(--font-mono); font-size: 0.86rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.minispecs span { font-size: var(--step--1); color: var(--steel); }
@media (max-width: 420px) { .minispecs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }


/* ---- DRO (digital readout) ------------------------------------------------------------------------------- */
.dro { background: var(--code-bg); color: var(--code-ink); border-radius: var(--radius); padding: 16px 18px; font-family: var(--font-mono); display: grid; gap: 6px; border: 1px solid var(--rule); }
.dro-row { display: grid; grid-template-columns: 5.5em repeat(3, minmax(0, 1fr)); gap: 12px; font-variant-numeric: tabular-nums; font-size: 0.82rem; align-items: baseline; }
.dro-row .who { font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--code-dim); }
.dro-row.twin .who { color: #3fd3f0; }
.dro-row.real .who { color: #f0924a; }
.dro-row.head span { color: var(--code-dim); font-size: 0.62rem; letter-spacing: 0.1em; }

/* ---- pricing --------------------------------------------------------------------------------------------- */
.price-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); align-items: stretch; }
@media (max-width: 1000px) { .price-cards { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }
.price-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 26px; display: grid; gap: 14px; grid-template-rows: auto auto auto 1fr auto; }
.price-card.featured { border: 2px solid var(--real); box-shadow: var(--shadow-2); }
.price-card .badge { justify-self: start; }
.price-card h3 { font-size: 1.25rem; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price b { font-family: var(--font-display); font-stretch: 112%; font-size: 2.2rem; font-weight: 760; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price > span { color: var(--steel); font-size: var(--step--1); }
.price-card ul { list-style: none; padding: 0; display: grid; gap: 8px; color: var(--ink-2); font-size: 0.95rem; }
.price-card ul li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; margin: 0; }
.price-card ul li::before { content: ""; width: 9px; height: 9px; margin-top: 0.55em; border-radius: 2px; background: var(--twin); }
.price-card.featured ul li::before { background: var(--real); }
.currency { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: 8px; overflow: hidden; }
.currency button { font-family: var(--font-mono); font-size: 0.76rem; padding: 8px 12px; border: 0; background: var(--surface); color: var(--ink-2); cursor: pointer; }
.currency button + button { border-left: 1px solid var(--rule-strong); }
.currency button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
table.data { border-collapse: collapse; width: 100%; font-size: 0.93rem; }
table.data th, table.data td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.data th { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel); font-weight: 600; background: var(--sunken); }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num, table.data th.num { text-align: right; white-space: nowrap; }

/* ---- badges, notes --------------------------------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--rule-strong); color: var(--ink-2);
  white-space: nowrap;
}
.badge.twin { color: var(--twin); border-color: var(--twin); background: var(--twin-soft); }
.badge.real { color: var(--real); border-color: var(--real); background: var(--real-soft); }
.badge.ok { color: var(--ok); border-color: var(--ok); }
.badge.warn { color: var(--warn); border-color: var(--warn); }
.note { border: 1px solid var(--rule); border-left: 3px solid var(--warn); background: var(--surface); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 0.93rem; color: var(--ink-2); }
.note.twin { border-left-color: var(--twin); }
.note b { color: var(--ink); }

/* ---- code ------------------------------------------------------------------------------------------------ */
.code { position: relative; background: var(--code-bg); color: var(--code-ink); border-radius: var(--radius); border: 1px solid var(--rule); overflow: hidden; }
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--code-dim); text-transform: uppercase; }
.code-head button { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; color: var(--code-ink); background: transparent; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 4px; padding: 4px 8px; cursor: pointer; }
.code-head button:hover { border-color: rgba(255, 255, 255, 0.4); }
.code pre { margin: 0; padding: 14px 16px; overflow-x: auto; font-size: 0.8rem; line-height: 1.65; }
.code .c { color: var(--code-dim); }
.code .k { color: var(--code-key); }
.code .s { color: var(--code-str); }
.code .n { color: #c7a4ff; }
.transcript { display: grid; gap: 10px; }
.turn { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 640px) { .turn { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.turn .who { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--steel); padding-top: 12px; }
.turn.ai .who { color: var(--twin); }
.turn .bubble { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 12px 14px; font-size: 0.94rem; color: var(--ink-2); }
.turn.tool .bubble { font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; background: var(--code-bg); color: var(--code-ink); font-family: var(--font-mono); font-size: 0.76rem; line-height: 1.6; white-space: pre-wrap; overflow-x: auto; border-color: transparent; }
.turn.tool .bubble .k { color: var(--code-key); }
.turn.tool .bubble .s { color: var(--code-str); }
.turn.tool .bubble .c { color: var(--code-dim); }

/* ---- diagram --------------------------------------------------------------------------------------------- */
.diagram { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(14px, 2vw, 24px); overflow-x: auto; }
.diagram svg { min-width: 640px; width: 100%; height: auto; }
/* ---- flow diagram (AI page) ------------------------------------------------------------------------------ */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr) 96px minmax(0, 1fr) 78px minmax(0, 0.85fr); align-items: center; }
.flow .node { border: 1px solid var(--rule-strong); background: var(--sunken); border-radius: 10px; padding: 16px 12px; display: grid; gap: 6px; text-align: center; min-height: 100px; align-content: center; }
.flow .node b { font-family: var(--font-display); font-stretch: 108%; font-size: 1rem; font-weight: 700; }
:lang(zh) .flow .node b { font-stretch: 100%; }
.flow .node span { font-family: var(--font-mono); font-size: 0.66rem; color: var(--steel); line-height: 1.5; }
.flow .node.twin { background: var(--twin-soft); border-color: var(--twin); }
.flow .node.real { background: var(--real-soft); border: 1.5px dashed var(--real); }
.flow .edge { position: relative; min-height: 44px; display: grid; place-items: center; }
.flow .edge::before { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; border-top: 2px solid var(--twin); }
.flow .edge::after { content: ""; position: absolute; right: 2px; top: calc(50% - 5px); border-left: 8px solid var(--twin); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.flow .edge span { position: relative; z-index: 1; background: var(--surface); padding: 2px 5px; font-family: var(--font-mono); font-size: 0.62rem; color: var(--steel); text-align: center; line-height: 1.35; max-width: 92px; }
.flow .edge.gap::before { border-top: 2px dashed var(--real); }
.flow .edge.gap::after { display: none; }
.flow .edge.gap span { color: var(--real); }
@media (max-width: 900px) {
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow .edge { min-height: 52px; }
  .flow .edge::before { left: 50%; right: auto; top: 4px; bottom: 4px; border-top: 0; border-left: 2px solid var(--twin); }
  .flow .edge::after { right: auto; left: calc(50% - 4px); top: auto; bottom: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 8px solid var(--twin); border-bottom: 0; }
  .flow .edge.gap::before { border-top: 0; border-left: 2px dashed var(--real); }
  .flow .edge span { max-width: none; }
}

.diagram text { font-family: var(--font-body); fill: var(--ink); }
.diagram .d-mono { font-family: var(--font-mono); font-size: 11px; fill: var(--steel); letter-spacing: 0.04em; }
.diagram .d-box { fill: var(--sunken); stroke: var(--rule-strong); }
.diagram .d-twin { fill: var(--twin-soft); stroke: var(--twin); }
.diagram .d-real { fill: var(--real-soft); stroke: var(--real); }
.diagram .d-line { stroke: var(--steel); stroke-width: 1.5; fill: none; }
.diagram .d-line.twin { stroke: var(--twin); }
.diagram .d-line.real { stroke: var(--real); stroke-dasharray: 5 4; }
.diagram .d-arrow { fill: var(--steel); }
.diagram .d-arrow.twin { fill: var(--twin); }
.diagram .d-arrow.real { fill: var(--real); }

/* ---- gallery --------------------------------------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button { font-family: var(--font-body); font-size: 0.88rem; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--rule-strong); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
@media (max-width: 1000px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .gallery { grid-template-columns: minmax(0, 1fr); } }
.part { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.part-thumb { background: linear-gradient(160deg, var(--studio-a), var(--studio-b)); aspect-ratio: 4 / 3; position: relative; }
.part-thumb img { position: absolute; inset: 7%; width: 86%; height: 86%; object-fit: contain; }
.part-thumb .badge { position: absolute; left: 12px; top: 12px; background: var(--surface); }
.part-thumb .part-no { position: absolute; right: 12px; top: 10px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--steel); }
.part-body { padding: 18px; display: grid; gap: 10px; align-content: start; }
.part-body h3 { font-size: 1.08rem; font-stretch: 106%; }
:lang(zh) .part-body h3 { font-stretch: 100%; }
.part-body p { color: var(--ink-2); font-size: 0.92rem; }
.part-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; margin-top: 4px; }
.part-stats div { background: var(--surface); padding: 8px 10px; display: grid; gap: 1px; }
.part-stats b { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.part-stats span { font-size: 0.7rem; color: var(--steel); }
.part-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.part .result { font-size: 0.84rem; color: var(--ok); display: flex; gap: 8px; align-items: baseline; }
.part .result::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; transform: translateY(-1px); }
.part details { font-size: 0.9rem; color: var(--ink-2); }
.part details summary { cursor: pointer; color: var(--ink); font-weight: 600; font-size: 0.88rem; }
.part details ul { margin-top: 8px; }

/* ---- 3D viewer ------------------------------------------------------------------------------------------- */
.viewer { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--rule); background: linear-gradient(160deg, var(--studio-a), var(--studio-b)); aspect-ratio: 16 / 10; }
.viewer.blueprint { background-color: var(--blueprint); }
.viewer canvas { width: 100% !important; height: 100% !important; display: block; }
.viewer .viewer-poster { position: absolute; inset: 0; }
.viewer .viewer-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4%; }
.viewer .viewer-cta { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.viewer .viewer-bar { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.viewer .viewer-bar button { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 7px 10px; border-radius: 6px; border: 1px solid var(--rule-strong); background: var(--header-bg); color: var(--ink); cursor: pointer; }
.viewer .viewer-bar button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.viewer .viewer-status { position: absolute; right: 12px; bottom: 12px; font-family: var(--font-mono); font-size: 0.68rem; color: var(--steel); background: var(--header-bg); padding: 5px 8px; border-radius: 4px; }
dialog.modal { width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--rule); border-radius: 14px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow-2); }
dialog.modal::backdrop { background: rgba(6, 10, 14, 0.62); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--rule); }
.modal-head h3 { font-size: 1.05rem; }
.modal-body { padding: 16px 18px 20px; display: grid; gap: 14px; }

/* ---- FAQ ------------------------------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--rule); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; position: relative; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-family: var(--font-mono); font-size: 1.3rem; color: var(--steel); font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq .answer { padding: 0 0 20px; color: var(--ink-2); max-width: 72ch; }

/* ---- forms ----------------------------------------------------------------------------------------------- */
.form-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 0.78rem; color: var(--steel); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 0.96rem; color: var(--ink); background: var(--paper); border: 1px solid var(--rule-strong);
  border-radius: 8px; padding: 11px 12px; width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--twin); outline-offset: 0; border-color: var(--twin); }
.consent { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; font-size: 0.84rem; color: var(--ink-2); align-items: start; }
.consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--twin); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 0.9rem; min-height: 1.4em; }
.form-status[data-state="ok"] { color: var(--ok); }
.form-status[data-state="error"] { color: var(--bad); }
.form-status[data-state="info"] { color: var(--steel); }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input[type="email"] { flex: 1 1 240px; font: inherit; font-size: 0.96rem; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--rule-strong); background: var(--paper); color: var(--ink); }

/* ---- bands ----------------------------------------------------------------------------------------------- */
.band { border-radius: 16px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px; align-items: center; }
@media (max-width: 900px) { .band { grid-template-columns: minmax(0, 1fr); } }
.band.dark { background-color: var(--blueprint); color: #e6ebf0; background-image: linear-gradient(rgba(63, 211, 240, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(63, 211, 240, 0.07) 1px, transparent 1px); background-size: 32px 32px; border: 1px solid #13232e; }
.band.dark p { color: #b7c2cc; }
.band.dark .eyebrow { color: #3fd3f0; }
.band.dark .btn.ghost { --btn-fg: #e6ebf0; --btn-border: #3a4a57; }
.band.dark .btn.ghost:hover { --btn-border: #e6ebf0; }
.band.dark .btn.twin { --btn-bg: #3fd3f0; --btn-border: #3fd3f0; --btn-fg: #06090c; }
.band.dark .btn.real { --btn-bg: #f0924a; --btn-border: #f0924a; --btn-fg: #06090c; }
.band.dark .check-list li { color: #d5dde4; }
.band.dark .check-list li::before { border-color: #3fd3f0; background: linear-gradient(135deg, transparent 45%, #3fd3f0 45% 55%, transparent 55%); }
.band h2 { font-size: var(--step-3); }

/* ---- audience tiles -------------------------------------------------------------------------------------- */
.audience { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: var(--surface); }
@media (max-width: 900px) { .audience { grid-template-columns: minmax(0, 1fr); } }
.audience > a { padding: clamp(20px, 3vw, 32px); display: grid; gap: 12px; align-content: start; color: inherit; text-decoration: none; border-left: 1px solid var(--rule); }
.audience > a:first-child { border-left: 0; }
@media (max-width: 900px) { .audience > a { border-left: 0; border-top: 1px solid var(--rule); } .audience > a:first-child { border-top: 0; } }
.audience > a:hover { background: var(--sunken); }
.audience h3 { font-size: 1.2rem; }
.audience p { color: var(--ink-2); font-size: 0.97rem; }
.audience .go { font-weight: 600; color: var(--twin-strong); font-size: 0.93rem; }

/* ---- timeline -------------------------------------------------------------------------------------------- */
.timeline { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
@media (max-width: 900px) { .timeline { grid-template-columns: minmax(0, 1fr); } }
.timeline li { margin: 0; padding: 16px 16px 0 0; border-top: 2px solid var(--rule-strong); display: grid; gap: 6px; align-content: start; position: relative; }
.timeline li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--rule-strong); }
.timeline li.done { border-top-color: var(--twin); }
.timeline li.done::before { background: var(--twin); border-color: var(--twin); }
.timeline li.now::before { background: var(--paper); border-color: var(--real); box-shadow: 0 0 0 4px var(--real-soft); }
.timeline b { font-size: 0.98rem; }
.timeline span { font-family: var(--font-mono); font-size: var(--step--2); color: var(--steel); letter-spacing: 0.04em; }
.timeline p { font-size: 0.9rem; color: var(--ink-2); }
@media (max-width: 900px) { .timeline li { padding: 14px 0 14px 22px; border-top: 0; border-left: 2px solid var(--rule-strong); } .timeline li::before { top: 18px; left: -7px; } .timeline li.done { border-left-color: var(--twin); } }

/* ---- footer ---------------------------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--rule); background: var(--surface); padding-block: 56px 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand p { color: var(--steel); font-size: 0.9rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--steel); margin-bottom: 12px; font-weight: 600; font-stretch: 100%; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.footer-col li { margin: 0; }
.footer-col a { color: var(--ink-2); text-decoration: none; font-size: 0.92rem; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 0.82rem; color: var(--steel); }
.footer-bottom p { max-width: 80ch; }

/* ---- misc ------------------------------------------------------------------------------------------------ */
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; font-size: 0.92rem; }
.kv dt { color: var(--steel); }
.kv dd { margin: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.stack { display: grid; gap: 16px; align-content: start; }
.center { text-align: center; }
.mt-s { margin-top: 12px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: 44px; }
.logo-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-family: var(--font-mono); font-size: 0.72rem; padding: 5px 9px; border-radius: 6px; background: var(--sunken); border: 1px solid var(--rule); color: var(--ink-2); }

/* ---- link cards, tool and rule tables (Studio, AI and Programming pages) ------------------------------------- */
.card-link .go { font-weight: 600; color: var(--twin-strong); font-size: 0.93rem; }
table.data tr.group th { background: var(--sunken); color: var(--ink-2); padding-block: 9px; }
table.data.tools td:first-child, table.data.rules td:first-child { white-space: nowrap; }
table.data.bench tr.total td { font-weight: 600; border-top: 1px solid var(--rule-strong); background: var(--sunken); }
table.data.bench td.num { font-family: var(--font-mono); font-size: 0.84rem; }
.sev { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.sev.error { color: var(--bad); }
.sev.warning { color: var(--warn); }
.sev.info { color: var(--steel); }
kbd { display: inline-block; padding: 2px 6px; border: 1px solid var(--rule-strong); border-bottom-width: 2px; border-radius: 4px; background: var(--paper); color: var(--ink); white-space: nowrap; }
table.data.keys td:first-child { width: 1%; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .viewer, .twinslider input { display: none !important; }
}
