/* -------------------------------------------------------------------
   Gamentic — marketing pages (/site/product, /site/about)

   This file follows gamentic-assets/09-brand-system, not a generic
   landing-page template. The rules that matter here:

     · One ramp. The blue ramp carries everything; neutrals are
       cool-biased toward it so panels sit UNDER the accent instead of
       fighting it. #ffe14d is "signal" — reserved for a claim being
       stamped, never ordinary furniture.
     · One curve. --mech, everywhere. No springs, nothing linear.
     · The lattice. Every angle is a multiple of 30°. 45° is never
       legal — that is most of what makes a set look constructed
       rather than eyeballed.
     · Type. Orbitron for display, Montserrat for body, and the CJK
       stack as a FIRST-CLASS token: neither Latin face has Han
       glyphs, and half this brand's output is Chinese, so a bolted-on
       fallback means tofu.
     · Display is not for data. Orbitron's zero is slashed and below
       ~30px the slash merges with the bowl into a solid block.

   ⚠ Dark, like the editor. The previous version of this file was a
     light generic SaaS landing page with emoji in circles — it looked
     nothing like the product it was selling.
   ------------------------------------------------------------------- */

:root {
  /* neutrals — cool-biased toward the blue ramp, per the system */
  --g950: #0a0b0d;
  --g900: #101114;
  --g800: #16181c;
  --g700: #202124;
  --g600: #2a2c31;
  --g500: #3a3d44;
  --g400: #5a5e66;
  --g300: #96999f;
  --g100: #dfe0e4;

  /* the one ramp */
  --b900: #0b2447;
  --b700: #12539e;
  --b500: #1877f2;
  --b400: #3f96f0;
  --b300: #6fb4ff;
  --b200: #a8cfff;
  --b100: #dceeff;

  /* the one exception — a claim being stamped, nothing else */
  --signal: #ffe14d;

  --bg: var(--g950);
  --panel: var(--g900);
  --panel-2: var(--g800);
  --line: #23252b;
  --line-soft: #1a1c20;
  --text: var(--g100);
  --muted: var(--g300);
  /**
   * ⚠ 唔可以直接用 --g400(#5a5e66)。量過:喺 #0a0b0d 上面得 3.03:1、
   *   喺面板 #101114 上面 2.90:1 —— WCAG AA 正常字要 4.5:1,即係 footer
   *   同啲小 note 根本睇唔清。
   *   #7d828b 喺三個底(g950 / g900 / g800)分別係 5.10 / 4.89 / 4.60,全部過關。
   *   佢喺 ramp 兩個階之間 —— ramp 係管**面嘅**,而字嘅對比係可讀性要求,
   *   兩者衝突嗰陣以可讀性為準。
   */
  --muted-2:       #7d828b;

  --display: 'Orbitron', ui-sans-serif, system-ui, sans-serif;
  --body: 'Montserrat', ui-sans-serif, system-ui, -apple-system, sans-serif;
  /**
   * ⚠ A token, not a fallback chain. Orbitron and Montserrat have zero Han
   *   glyphs — put them first WITHOUT this and every Chinese page renders
   *   tofu. Latin falls to Orbitron/Montserrat, Han falls through to here,
   *   per-glyph, which is exactly what we want.
   */
  --cjk: 'PingFang TC', 'PingFang HK', 'Hiragino Sans CNS', 'Noto Sans CJK TC',
         'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Consolas, monospace;

  --mech: cubic-bezier(.22, .94, .30, 1);
  --beat: 500ms;              /* 15 frames @30fps = one beat at 120 BPM */
  --maxw: 1180px;
  --nav-h: 62px;
  --r: 10px;
  --r-sm: 6px;
}

/* --- base ---------------------------------------------------------- */
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 18px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body), var(--cjk);
  font-size: 15.5px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
:lang(zh-Hant) body, html[lang^="zh"] body { font-family: var(--cjk); letter-spacing: .01em; }

a { color: var(--b300); text-decoration: none; transition: color 160ms var(--mech); }
a:hover { color: var(--b200); }
img { max-width: 100%; display: block; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--b500); color: #fff; padding: 9px 15px; border-radius: var(--r-sm);
}
.skip:focus { left: 12px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }

/* Headings use the display face for Latin and fall through for Han. */
h1, h2, h3 {
  font-family: var(--display), var(--cjk);
  color: #fff;
  letter-spacing: .005em;
  font-weight: 700;
}
html[lang^="zh"] h1, html[lang^="zh"] h2, html[lang^="zh"] h3 {
  font-family: var(--cjk);
  font-weight: 700;
  letter-spacing: .02em;
}

/* --- nav ----------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: color-mix(in srgb, var(--g950) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  max-width: var(--maxw); margin: 0 auto; padding: 0 26px;
  height: 100%; display: flex; align-items: center; gap: 26px;
}
/**
 * ⚠ 字標一律用圖,唔准打字。個字標係品牌原檔嘅 chrome 質感字,唔係任何
 *   裝得到嘅字體 —— 打 "GAMENTIC" 出嚟(就算用 Orbitron)都同宣傳片、
 *   og:image、app 個 nav 嗰個字標唔同樣。同一個名喺唔同表面唔同樣,
 *   就冇咗品牌可言。
 * ⚠ 張圖係 scripts/brand/make-lockup.mjs 由 2048px 原檔 **crop + 縮** 出嚟
 *   (480×76 / 31KB)。crop 好緊要:原檔直向得 47.7% 係真嘢,唔剷走嗰半空氣,
 *   你寫 height:26px 都得 12px 係 logo —— 睇落就係「個 icon 太細」。
 *   要改尺寸改嗰個 script 再跑,唔好喺呢度塞第二張圖。
 */
.logo { display: inline-flex; align-items: center; }
.logo:hover { text-decoration: none; }
.logo img { height: 26px; width: auto; display: block; }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  color: var(--muted); font-size: 13.4px; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase;
}
.nav-links a:hover { color: #fff; }
.nav-links a[aria-current="page"] { color: #fff; }
.nav-sp { flex: 1; }
.nav-side { display: flex; align-items: center; gap: 16px; }
.lang { color: var(--muted); font-size: 12.6px; letter-spacing: .04em; }

/* --- buttons ------------------------------------------------------
   ⚠ The corner cut is 30° (the lattice). A 45° chamfer is the default
     any drawing tool gives you and is exactly what the system bans. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 24px;
  border: 1px solid var(--g600); background: var(--panel-2); color: var(--text);
  font: inherit; font-size: 13.4px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
  clip-path: polygon(11px 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%, 0 11px);
  transition: background 180ms var(--mech), color 180ms var(--mech), border-color 180ms var(--mech);
}
.btn:hover { text-decoration: none; background: var(--g700); border-color: var(--g500); color: #fff; }
.btn.pri {
  background: var(--b500); border-color: var(--b500); color: #fff;
}
.btn.pri:hover { background: var(--b400); border-color: var(--b400); }
.btn.sm { padding: 8px 16px; font-size: 12.2px; }
html[lang^="zh"] .btn { letter-spacing: .08em; text-transform: none; }

/* --- sections ------------------------------------------------------ */
section { padding: 84px 0; }
section.alt { background: var(--panel); border-block: 1px solid var(--line); }

.head { margin-bottom: 44px; }
.head.mid { text-align: center; max-width: 660px; margin-inline: auto; }
.kicker {
  font-family: var(--display), var(--cjk);
  font-size: 11.4px; font-weight: 700; letter-spacing: .20em; text-transform: uppercase;
  color: var(--b400); margin-bottom: 14px;
}
html[lang^="zh"] .kicker { font-family: var(--cjk); letter-spacing: .14em; }
h2 { font-size: clamp(23px, 3vw, 31px); line-height: 1.3; margin: 0 0 12px; }
h3 { font-size: 15.5px; margin: 0 0 9px; letter-spacing: .02em; line-height: 1.4; }
.head p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* --- hero ---------------------------------------------------------
   The wash is the system's single light source: a horizontal sweep,
   not a radial "AI glow". */
.hero {
  /* 一個真源:文字欄嘅闊度。標題、副題同塊文字盾全部由佢派生 ——
     分開寫嘅話改一邊唔記得改第二邊,塊盾就會包唔住啲字(或者包到成版)。 */
  --copy-w: min(680px, 100%);
  position: relative; overflow: hidden;
  padding: 108px 0 96px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
/**
 * 品牌片做底 —— 呢個就係「唔空」嘅來源。
 *
 * ⚠ poster 一定要有,而且要即刻上畫:條片載緊嗰陣個 hero 唔可以係一嚿黑。
 * ⚠ 條片係**裝飾**,唔係內容 —— 所以靜音、loop、playsinline,而且
 *   prefers-reduced-motion 同細螢幕根本唔載(見下面 @media)。
 *   任何時候淨係睇 poster 都要睇得成版嘢。
 * ⚠ 個 scrim 唔可以平均鋪:左邊(啲字嗰邊)要夠實先讀得到,右邊要夠薄
 *   先睇到啲美術。所以係一條斜嘅漸變,唔係一塊半透明黑。
 */
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img, .hero-bg video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-bg video { position: absolute; inset: 0; opacity: 0; transition: opacity 600ms var(--mech); }
.hero-bg video.on { opacity: 1; }
/**
 * 個 scrim 分兩層,各做一件事:
 *   ① 一層**好薄**嘅整體壓暗(.12 → 0)—— 淨係拉低成幅畫,唔遮
 *   ② 一塊**只喺文字底下**嘅橢圓軟邊盾(.86,邊位散晒)
 *
 * ⚠ 唔用一條斜漸變,係因為噉樣「壓得住啲字」同「睇得到條片」會變成
 *   同一粒掣嘅兩頭 —— 扭邊邊都輸一樣。第一版左邊壓到 .97,啲字梗係好讀,
 *   但條片喺文字嗰半根本睇唔到,用戶嘅講法係「明明有條片,成版睇落仍然係死嘅」。
 *   加塊局部盾就係將兩樣嘢拆開:啲字底下就地壓實,其餘成幅畫基本全開。
 *
 * ⚠ 呢度啲數全部係**抽真像素量返嚟**,唔係睇 CSS 估:
 *   test/unit/heroLegibility.test.ts 會由一張真 screenshot 反解出個 scrim 嘅
 *   真 alpha,再攞條片**逐點最大值**去合成。一格靜態 poster 量唔到一條郁緊
 *   嘅片 —— 2026-08-20 我就係中咗呢個坑:抽一格 poster 量到「冇問題」,
 *   實際條片尾段爆光到 p99 0.97,啲字對比跌到 2.1:1。
 */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(94deg,
      rgba(10, 11, 13, .12) 0%,
      rgba(10, 11, 13, .04) 55%,
      rgba(10, 11, 13, 0) 100%),
    linear-gradient(rgba(10, 11, 13, .04), rgba(10, 11, 13, .04)),
    linear-gradient(to top, var(--bg) 1%, transparent 20%);
}
.hero .wrap { position: relative; z-index: 1; }
/**
 * 塊「文字盾」跟住嗰嚿字自己走 —— 唔係喺 hero 度釘一個固定橢圓。
 *
 * ⚠ 釘死嘅橢圓喺 about 版走漏咗:嗰版個 h1 係一長行,右邊去到 x=1177,
 *   完全喺塊盾之外,白字對住條片最光嗰幾格得 1.80:1。同一塊 CSS 要服侍
 *   四版長短唔同嘅文案,塊盾就一定要跟 content,唔可以跟 viewport。
 * ⚠ 用「一嚿實色 + blur」而唔用 radial-gradient:radial 嘅 ending shape
 *   (closest-side / farthest-side)喺長方形嘅盒上面點揀都會漏角位,
 *   而 blur 出嚟嘅軟邊係跟住個盒嘅形,冇幾何假設。
 */
.hero .wrap::before {
  content: ""; position: absolute; z-index: -1;
  inset: -46px auto -38px -60px;
  width: calc(var(--copy-w) + 130px);
  border-radius: 44px;
  background: rgba(10, 11, 13, .88);
  filter: blur(46px);
}
/* one edge: 3px core, 1.2px filament — the only lit line on the page */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--b500) 22%, var(--b300) 50%, var(--b500) 78%, transparent);
  box-shadow: 0 0 36px rgba(63, 150, 240, .55);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  padding: 5px 14px;
  border: 1px solid rgba(63, 150, 240, .38); background: rgba(63, 150, 240, .09);
  color: var(--b300); font-size: 11.6px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
html[lang^="zh"] .eyebrow { letter-spacing: .1em; text-transform: none; }
.hero h1 {
  font-size: clamp(31px, 4.8vw, 52px); line-height: 1.14; margin: 0 0 20px;
  letter-spacing: .01em; font-weight: 900;
  /* ⚠ 唔封頂嘅話 about 版個標題會攤成一條 1100px 嘅單行 —— 52px 嘅字排到
     咁長本身就難讀,而且成行衝出塊文字盾之外,白字對住條片得 1.80:1。 */
  max-width: var(--copy-w);
}
html[lang^="zh"] .hero h1 { font-weight: 700; line-height: 1.28; letter-spacing: .03em; }
.grad { color: var(--b300); }
.sub {
  font-size: clamp(15.5px, 1.7vw, 17.5px); color: var(--muted);
  max-width: 620px; margin: 0 0 32px;
}
.hero .sub, .hero .note { max-width: var(--copy-w); }
.sub b { color: #fff; font-weight: 600; }
/**
 * ⚠ hero 嘅 .sub / .note 唔可以照用版面嗰隻灰 —— 底下係一條郁緊嘅片,
 *   唔係一塊死色。--muted(#96999f)對住最光嗰幾格得 4.2:1,拉淡到
 *   #c8ccd3 就有 8:1 以上 —— 同一個 scrim 底下,唔使多壓一分黑。
 *   即係話:拉淡啲字好過壓黑幅畫,兩邊一齊贏。
 */
.hero .sub { color: #c8ccd3; }
.hero .note { color: #a6abb5; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.note { color: var(--muted-2); font-size: 12.6px; margin-top: 20px; letter-spacing: .04em; }

/* --- steps ---------------------------------------------------------
   三步帶:每步一粒六角 + 一個號碼。中間嗰條線係格網嘅一部分,
   唔係裝飾線 —— 佢喺 30° 上面(水平係合法邊)。 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); }
.step { background: var(--panel); padding: 30px 26px; position: relative; }
.step-n {
  display: inline-grid; place-items: center; width: 34px; height: 38px; margin-bottom: 16px;
  background: var(--accent-soft, rgba(63, 150, 240, .12));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  color: var(--b300); font-family: var(--body); font-weight: 700; font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.2px; line-height: 1.62; margin: 0; }
.step + .step::before {
  content: ""; position: absolute; left: 0; top: 46px; width: 1px; height: 22px;
  background: var(--b500); box-shadow: 0 0 10px rgba(63, 150, 240, .6);
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .step + .step::before { display: none; } }

/* --- split --------------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); gap: 52px; align-items: start; }
.say {
  font-family: var(--display), var(--cjk);
  font-size: clamp(20px, 2.5vw, 27px); line-height: 1.36; font-weight: 700;
  color: #fff; margin: 0; max-width: 17ch; letter-spacing: .01em;
}
html[lang^="zh"] .say { font-family: var(--cjk); line-height: 1.5; max-width: 15ch; }
.say em { font-style: normal; color: var(--b400); }
.split p:first-child { margin-top: 0; }

/* --- tiles ---------------------------------------------------------
   Flat panels on the lattice — no rounded cards, no drop shadows.
   The left rule is the only decoration and it lights on hover. */
/**
 * ⚠ 3 欄,唔係 auto-fit。
 *   實測 1128px 之下 minmax(268px,1fr) 排到 **4 欄**,而每一組 tile 唔係 6 格
 *   就係 3 格 —— 即係 4+2 同 3+1,尾行嗰啲空格會露出格線底色,睇落就係一個窿。
 *   6 同 3 嘅公因數係 3,所以直接寫死 3 欄:6 格 = 兩行齊頭,3 格 = 一行齊頭。
 * ⚠ 兩格嗰組(「用我哋個 AI,定用你自己嘅」)要 .two —— 佢喺 3 欄之下
 *   一樣會剩一格窿。
 */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); }
.tiles.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .tiles, .tiles.two { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .tiles, .tiles.two { grid-template-columns: 1fr; } }
.tile {
  background: var(--panel); padding: 28px 26px;
  border-left: 2px solid transparent;
  transition: background 200ms var(--mech), border-color 200ms var(--mech);
}
.tile:hover { background: var(--panel-2); border-left-color: var(--b500); }
.tile .ic { display: block; width: 30px; height: 30px; margin-bottom: 16px; color: var(--b400); }
.tile p { color: var(--muted); font-size: 14.2px; line-height: 1.62; margin: 0; }

/* --- stats ---------------------------------------------------------
   ⚠ Numerals use the BODY face. Orbitron's slashed zero turns into a
     solid block below ~30px — a "0" reads as a filled hexagon. */
/* ⚠ 4 欄。auto-fit + minmax(150px) 喺 1128px 排到 7 欄,而得 4 個數字
   → 尾行剩 3 個空格露出格線底色。同 .tiles / .gal 一樣嘅坑。 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--panel); padding: 26px 20px; text-align: center; }
.stat b {
  display: block; font-family: var(--body); font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 4vw, 38px); font-weight: 700; color: #fff; line-height: 1.1;
}
.stat span { color: var(--muted); font-size: 12.8px; letter-spacing: .04em; }

/* --- proof --------------------------------------------------------- */
.proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px 26px; }
.pf { display: flex; gap: 12px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
/* A hexagon, not a tick: the brand's own geometry, and it needs no icon file. */
.pf::before {
  content: ""; flex: none; width: 8px; height: 9px; margin-top: 8px;
  background: var(--b400);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.pf b { color: #fff; font-weight: 600; }

/* --- gallery ------------------------------------------------------- */
/**
 * ⚠ 4 欄,唔係 auto-fill。gallery.js 出 7 隻 game + 1 格「睇晒全部」= 8 格,
 *   而 auto-fill 喺 1128px 排到 **5 欄** → 5+3,尾行剩兩個窿露出容器底色。
 *   8 除得盡嘅係 4 同 2,所以桌面 4 欄、窄啲 2 欄、手機 1 欄 —— 每個斷點都齊頭。
 *   改 gallery.js 個 TOP 就要順手諗返呢度(有測試會嗌)。
 */
.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); }
@media (max-width: 1000px) { .gal { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .gal { grid-template-columns: 1fr; } }
.gcard {
  display: block; background: var(--panel); color: inherit; overflow: hidden;
  transition: background 200ms var(--mech);
}
.gcard:hover { text-decoration: none; background: var(--panel-2); }
.gcard img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--g800); }
.gcard:hover img { opacity: .92; }
.gc-b { padding: 13px 15px 16px; }
.gc-t { font-weight: 600; color: #fff; font-size: 13.8px; margin-bottom: 6px; }
.gc-m { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted-2); font-size: 11.8px; font-variant-numeric: tabular-nums; }

/* --- code ---------------------------------------------------------- */
pre {
  background: var(--g950); border: 1px solid var(--line);
  padding: 13px 15px; margin: 0;
  font-family: var(--mono); font-size: 12.6px; color: var(--b200);
  overflow-x: auto;
}

/* --- live demo ----------------------------------------------------- */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) 274px; gap: 1px; background: var(--line-soft); align-items: stretch; }
.demo-stage { position: relative; background: var(--panel); overflow: hidden; }
.demo-stage canvas { display: block; width: 100%; height: auto; background: #0d1016; }
.demo-badge {
  position: absolute; top: 13px; left: 13px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 11px; background: rgba(10, 11, 13, .74);
  color: #fff; font-size: 10.8px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}
.demo-badge::before {
  content: ""; width: 6px; height: 6px; background: var(--b300);
  box-shadow: 0 0 8px var(--b400);
  animation: beat calc(var(--beat) * 4) var(--mech) infinite;
}
@keyframes beat { 0%, 70%, 100% { opacity: 1; } 85% { opacity: .25; } }
.demo-panel { background: var(--panel); padding: 17px; }
.dp-h {
  font-family: var(--display), var(--cjk);
  font-size: 10.8px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); padding-bottom: 11px; margin-bottom: 15px;
  border-bottom: 1px solid var(--line);
}
html[lang^="zh"] .dp-h { font-family: var(--cjk); letter-spacing: .12em; }
.fld { margin-bottom: 16px; }
.fld-l {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12.6px; color: var(--muted); margin-bottom: 8px; letter-spacing: .02em;
}
.fld-l output { font-family: var(--mono); font-size: 12px; color: var(--b300); font-variant-numeric: tabular-nums; }
input[type="range"] {
  width: 100%; height: 2px; appearance: none; -webkit-appearance: none;
  background: var(--g600); cursor: pointer; margin: 0;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none;
  width: 14px; height: 14px; background: var(--b400);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);  /* hexagon */
}
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border: 0; background: var(--b400);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
input[type="range"]:focus-visible { outline: 1px solid var(--b400); outline-offset: 5px; }
.sw { display: flex; gap: 9px; }
.sw button {
  width: 24px; height: 24px; padding: 0; cursor: pointer;
  border: 1px solid var(--g600); background-color: currentColor;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  transition: transform 160ms var(--mech);
}
.sw button[data-color="#3f96f0"] { color: #3f96f0; }
.sw button[data-color="#55c187"] { color: #55c187; }
.sw button[data-color="#d8a657"] { color: #d8a657; }
.sw button[data-color="#e06c75"] { color: #e06c75; }
.sw button[aria-pressed="true"] { transform: scale(1.18); border-color: #fff; }
.demo-foot { color: var(--muted-2); font-size: 11.8px; margin: 15px 0 0; line-height: 1.55; }

/* --- cta ----------------------------------------------------------- */
.cta {
  text-align: center; background: var(--panel); border: 1px solid var(--line);
  padding: 58px 32px; position: relative;
}
.cta::before {
  content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 160px; height: 2px; background: var(--b500); box-shadow: 0 0 24px rgba(63, 150, 240, .6);
}
.cta h2 { margin-bottom: 24px; }
.cta .cta-row { justify-content: center; }

/* --- footer -------------------------------------------------------- */
.foot { border-top: 1px solid var(--line); padding: 28px 0; background: var(--g950); }
.foot-in { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; color: var(--muted-2); font-size: 12.6px; }
.foot-in .sp { flex: 1; }
.foot-in a { color: var(--muted); }
.foot-in a:hover { color: #fff; }

/* --- legal (terms / privacy) ---------------------------------------
   One column of running prose, measure capped at ~72ch. These pages get
   read end-to-end by two audiences that both matter: a user deciding
   whether to trust us, and a reviewer checking the OAuth submission —
   so no cards, no columns, nothing that hides text behind an interaction. */
.legal { max-width: 72ch; }
.legal h2 {
  font-size: 18.5px; line-height: 1.4; margin: 40px 0 10px;
  padding-top: 20px; border-top: 1px solid var(--line-soft);
}
.legal h2:first-of-type { margin-top: 8px; padding-top: 0; border-top: 0; }
.legal p { color: var(--g100); font-size: 15.2px; line-height: 1.75; margin: 0 0 12px; }
.legal p.meta { color: var(--muted-2); font-size: 13.2px; }
.legal a { color: var(--b300); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--b200); }
.legal ul { margin: 0 0 12px; padding-left: 20px; color: var(--g100); font-size: 15.2px; line-height: 1.75; }
.legal li { margin-bottom: 5px; }
.legal .updated {
  display: inline-block; font-family: var(--display), var(--cjk);
  font-size: 11.4px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 6px;
}

/* --- responsive ---------------------------------------------------- */
@media (max-width: 900px) {
  .demo { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 26px; }
  .say { max-width: none; }
}
@media (max-width: 720px) {
  section { padding: 58px 0; }
  .hero { padding: 64px 0 56px; }
  .wrap, .nav-in { padding-inline: 18px; }

  /**
   * ⚠ Never `.nav-links { display: none }` here. That leaves a phone with
   *   a logo and one button — no way to reach About / Docs / Explore at
   *   all, and phones are most of the traffic. Second row, scrolls.
   */
  .nav { height: auto; }
  .nav-in { flex-wrap: wrap; gap: 12px; padding-block: 11px; }
  .nav-sp { display: none; }
  .nav-side { margin-left: auto; }
  .nav-links { order: 3; width: 100%; gap: 20px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
