/* =========================================================================
   ShaiySense: shaiysense.xyz
   Tokens → base → components → sections → overlay menu → responsive
   ========================================================================= */

:root {
  --bg: #06050a;
  --bg2: #0b0912;
  --bg3: #110e1a;
  --line: rgba(255, 255, 255, .075);
  --line2: rgba(255, 255, 255, .14);
  --text: #f2f0fa;
  --muted: #a7a3bd;
  --dim: #6f6b86;
  --dim-text: #8a86a3; /* --dim for small text: 5:1 on --bg */

  --a: #a855f7;
  --a2: #ec4899;
  --a-rgb: 168, 85, 247;
  --a2-rgb: 236, 72, 153;
  --grad: linear-gradient(100deg, var(--a), var(--a2));

  --ff-display: 'Unbounded', system-ui, sans-serif;
  --ff-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  --ff-ui: Verdana, Tahoma, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: 24px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(1100px 700px at 85% -10%, rgba(var(--a-rgb), .13), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(var(--a2-rgb), .07), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg, canvas { display: block; }
ul { list-style: none; }
kbd { font-family: var(--ff-mono); }
input { font: inherit; color: inherit; }
::selection { background: rgba(var(--a-rgb), .45); color: #fff; }
:focus-visible { outline: 2px solid var(--a); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 1em; height: 1em; flex: none; }
[data-icon] { display: inline-flex; }
[data-icon] .ico { width: 18px; height: 18px; }

.grad, .ht-grad .ht-in {
  background: linear-gradient(100deg, var(--a), var(--a2) 50%, var(--a));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- buttons ---------- */
.btn {
  --h: 46px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s, background-color .3s, border-color .3s, color .3s;
  will-change: transform;
}
.btn-sm { --h: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; gap: 7px; }
.btn-sm [data-icon] .ico { width: 16px; height: 16px; }
.btn-lg { --h: 56px; padding: 0 26px; font-size: 16px; border-radius: 15px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(100deg, var(--a), var(--a2));
  box-shadow: 0 12px 34px -12px rgba(var(--a-rgb), .9), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .38) 50%, transparent 65%);
  background-size: 260% 100%;
  background-position: 130% 0;
  transition: background-position .8s var(--ease);
}
.btn-primary:hover::before { background-position: -30% 0; }
.btn-primary:hover { box-shadow: 0 16px 48px -10px rgba(var(--a-rgb), 1), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line2);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: rgba(var(--a-rgb), .6); background: rgba(var(--a-rgb), .1); }
.btn-discord {
  color: #fff;
  background: linear-gradient(100deg, #5865f2, #7983f5);
  box-shadow: 0 12px 34px -12px rgba(88, 101, 242, .9), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn-discord:hover { box-shadow: 0 16px 44px -10px rgba(88, 101, 242, 1), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-discord [data-icon] .ico { width: 20px; height: 20px; }
.btn-sm.btn-discord [data-icon] .ico { width: 17px; height: 17px; }
.faq-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.faq-btns .btn { margin-top: 0; }

/* ---------- keycaps ---------- */
.keycap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 66px;
  height: 60px;
  padding: 0 12px 2px;
  border-radius: 12px;
  background: linear-gradient(180deg, #2a2735, #17151f);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 5px 0 #0a090e, 0 12px 24px -8px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .09);
  transition: transform .12s var(--ease), box-shadow .2s, background .25s, border-color .25s;
}
.keycap kbd { font-weight: 700; font-size: 16px; color: #fff; line-height: 1; }
.keycap span { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .02em; transition: color .2s; }
.keycap:hover { border-color: rgba(var(--a-rgb), .55); }
.keycap:active, .keycap.press { transform: translateY(4px); box-shadow: 0 1px 0 #0a090e, 0 6px 14px -8px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .09); }
.keycap.on {
  background: linear-gradient(180deg, rgba(var(--a-rgb), .75), rgba(var(--a2-rgb), .45));
  border-color: rgba(var(--a-rgb), .8);
  box-shadow: 0 5px 0 rgba(var(--a-rgb), .35), 0 0 34px -4px rgba(var(--a-rgb), .85), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.keycap.on.press, .keycap.on:active { box-shadow: 0 1px 0 rgba(var(--a-rgb), .35), 0 0 34px -4px rgba(var(--a-rgb), .85), inset 0 1px 0 rgba(255, 255, 255, .3); }
.keycap.on span { color: #fff; }
.keycap-lg { min-width: 58px; height: 52px; border-radius: 12px; }
.keycap-lg kbd { font-size: 17px; }

/* ---------- pill / eyebrow / chips ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line2);
  font-size: 13.5px;
  color: var(--muted);
  backdrop-filter: blur(10px);
  transition: border-color .3s, background .3s;
}
.pill:hover { border-color: rgba(var(--a-rgb), .6); background: rgba(var(--a-rgb), .1); }
.pill b { color: #fff; font-weight: 700; }
.pill [data-icon] .ico { width: 15px; height: 15px; color: var(--a); }
.pill-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; }
.pill-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid #4ade80; animation: ping2 2s var(--ease) infinite; }
@keyframes ping2 { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.pill-sep { width: 1px; height: 14px; background: var(--line2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 600 12px/1 var(--ff-mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--a);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, transparent, var(--a)); }
.center .eyebrow::after { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, var(--a), transparent); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: 12.5px;
  font-weight: 600;
  color: #d9d6e6;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(6px);
}

.ticks li { position: relative; padding-left: 24px; margin: 8px 0; font-size: 14px; color: #d8d5e6; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .42em;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--a);
  border-bottom: 2px solid var(--a);
  transform: rotate(-45deg);
}

/* spotlight cards: radial glow + border light that follow the cursor */
.spot { position: relative; isolation: isolate; }
.spot::before, .spot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s;
}
.spot::before { z-index: -1; background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--a-rgb), .14), transparent 42%); }
.spot::after {
  z-index: 3;
  padding: 1px;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--a-rgb), .9), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.spot:hover::before, .spot:hover::after { opacity: 1; }

/* ---------- boot ---------- */
.boot { display: none; }
.booting body { overflow: hidden; }
.booting .boot {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: radial-gradient(600px 400px at 50% 45%, rgba(var(--a-rgb), .14), transparent 70%), #050409;
  transition: opacity .55s var(--ease), visibility .55s;
}
.boot.done { opacity: 0; visibility: hidden; }
.boot-inner { display: flex; flex-direction: column; align-items: center; }
.boot-mark { width: 64px; height: 64px; filter: drop-shadow(0 0 22px rgba(var(--a-rgb), .7)); animation: bootPulse 1.2s ease-in-out infinite alternate; }
@keyframes bootPulse { from { transform: scale(.94) rotate(-4deg); } to { transform: scale(1.04) rotate(4deg); } }
.boot-log { width: 320px; min-height: 8.6em; margin: 26px 0 14px; font: 500 12px/1.75 var(--ff-mono); color: #827e98; }
.boot-log div { white-space: nowrap; overflow: hidden; }
.boot-log .ok { color: #4ade80; }
.boot-log .ac { color: var(--a); }
.boot-bar { width: 320px; height: 2px; border-radius: 2px; background: #1b1924; overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 0; background: var(--grad); box-shadow: 0 0 12px var(--a); transition: width .22s linear; }

/* ---------- cursor ring ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 9995; pointer-events: none; }
.cursor-dot { display: none; }
.cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  border: 1.5px solid rgba(var(--a-rgb), .75);
  opacity: 0;
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background-color .3s, opacity .3s, border-color .3s;
  will-change: transform;
}
.cursor.live .cursor-ring { opacity: 1; }
.cursor.hover .cursor-ring { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: rgba(var(--a-rgb), .1); border-color: rgba(var(--a-rgb), .95); }
.cursor.off .cursor-ring { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- scroll progress ---------- */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 120; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); box-shadow: 0 0 10px rgba(var(--a-rgb), .9); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  border-bottom: 1px solid transparent;
  transition: background-color .35s, border-color .35s, backdrop-filter .35s;
}
.nav.scrolled { background: rgba(6, 5, 10, .74); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 22px; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.logo-mark { width: 30px; height: 30px; filter: drop-shadow(0 0 10px rgba(var(--a-rgb), .55)); transition: transform .5s var(--ease); }
.brand:hover .logo-mark { transform: rotate(90deg); }
.wordmark { font-family: var(--ff-display); font-weight: 700; font-size: 18px; letter-spacing: -.02em; color: #fff; }
.wordmark b {
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links { position: relative; display: flex; flex: none; gap: 3px; margin-left: 8px; }
.nav-links a { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; transition: color .25s, background-color .25s; }
.nav-links a > [data-icon] { display: inline-flex; flex: none; opacity: .7; transition: color .25s, opacity .25s; }
.nav-links a .ico { width: 17px; height: 17px; }
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(var(--a-rgb), .08); }
.nav-links a:hover > [data-icon], .nav-links a.active > [data-icon] { color: var(--a); opacity: 1; }
.nav-links a:focus-visible { outline: 2px solid var(--a); outline-offset: 2px; }
.nav-forum > [data-icon] { display: inline-flex; flex: none; }
.nav-forum .ico { width: 17px; height: 17px; }
.nav-forum > .nav-forum-arrow { opacity: .75; }
.nav-forum > .nav-forum-arrow .ico { width: 14px; height: 14px; }
.nav-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  border-radius: 2px;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(var(--a-rgb), .9);
  opacity: 0;
  transition: transform .45s var(--ease-out), width .45s var(--ease-out), opacity .3s;
}
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-discord {
  position: relative; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px;
  border-radius: 10px; color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap;
  background: rgba(88, 101, 242, .16); border: 1px solid rgba(88, 101, 242, .55);
  transition: background-color .25s, border-color .25s, box-shadow .25s;
}
.nav-discord:hover { background: #5865f2; border-color: #5865f2; box-shadow: 0 8px 24px -8px rgba(88, 101, 242, .9); }
.nav-discord > [data-icon] { display: inline-flex; }
.nav-discord .ico { width: 18px; height: 18px; color: #c9cdfb; transition: color .25s; }
.nav-discord:hover .ico { color: #fff; }
.nav-discord::after { /* small "live" dot */
  content: ""; position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%;
  background: #23c55e; box-shadow: 0 0 0 2px var(--bg), 0 0 8px #23c55e;
}
@media (max-width: 1180px) { .nav-discord { width: 40px; padding: 0; justify-content: center; } .nav-discord > span { display: none; } }
.theme-switch { display: flex; gap: 3px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.theme-switch button { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; transition: box-shadow .25s, background .25s; }
.theme-switch button:hover { background: rgba(255, 255, 255, .07); }
.theme-switch i { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg, var(--c1), var(--c2)); transition: transform .25s var(--ease); }
.theme-switch button[aria-checked="true"] { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .75); }
.theme-switch button[aria-checked="true"] i { transform: scale(1.12); }
.nav-burger { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line2); flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav-burger i { display: block; width: 16px; height: 1.5px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.nav-burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.mobile-menu-open, .mobile-menu-open body { overflow: hidden; }
.mobile-nav {
  position: fixed;
  inset: max(12px, env(safe-area-inset-top)) 12px auto auto;
  width: min(420px, calc(100% - 24px));
  max-height: calc(100dvh - max(12px, env(safe-area-inset-top)) - max(12px, env(safe-area-inset-bottom)));
  margin: 0;
  padding: 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(var(--a-rgb), .38);
  border-radius: 22px;
  background: radial-gradient(ellipse at top right, rgba(var(--a-rgb), .13), transparent 60%), #0e0b16;
  color: var(--text);
  box-shadow: 0 24px 80px #0009;
}
.mobile-nav::backdrop { background: #030208ba; backdrop-filter: blur(8px); }
.mobile-nav[open] { animation: mobile-menu-in .22s var(--ease-out) both; }
@keyframes mobile-menu-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.mn-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 18px; }
.mn-eyebrow { color: var(--a); font: 600 10px var(--ff-mono); letter-spacing: .16em; }
.mn-header h2 { font: 600 16px/1.4 var(--ff-display); margin-top: 8px; }
.mn-close { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line2); border-radius: 12px; background: #ffffff06; font-size: 28px; }
.mn-links { display: grid; gap: 4px; }
.mn-links a { display: flex; align-items: center; gap: 14px; min-height: 50px; padding: 10px 12px; border-radius: 12px; font-size: 15px; font-weight: 700; }
.mn-links a > [data-icon] { color: var(--a); }
.mn-links a > span:last-child { margin-left: auto; color: var(--dim); font-size: 16px; }
.mn-links small { display: block; font-size: 11px; font-weight: 400; line-height: 1.6; color: var(--muted); }
.mn-links a:hover, .mn-links a:focus-visible { background: rgba(var(--a-rgb), .12); }
.mn-links a:nth-child(2) { background: rgba(var(--a-rgb), .08); }
.mn-actions { display: grid; gap: 10px; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 18px; }
.mn-actions .btn { height: 48px; width: 100%; }
.mn-footnote { text-align: center; color: var(--dim); font-size: 11px; margin-top: 16px; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; min-height: 100vh; padding: 128px 0 36px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-aurora { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero-aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; animation: aur 22s ease-in-out infinite alternate; }
.hero-aurora i:nth-child(1) { width: 640px; height: 520px; left: 52%; top: -6%; background: rgba(var(--a-rgb), .55); }
.hero-aurora i:nth-child(2) { width: 520px; height: 480px; left: 70%; top: 34%; background: rgba(var(--a2-rgb), .4); animation-duration: 26s; animation-delay: -8s; }
.hero-aurora i:nth-child(3) { width: 560px; height: 420px; left: -14%; top: 40%; background: rgba(var(--a-rgb), .22); animation-duration: 30s; animation-delay: -14s; }
@keyframes aur { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-60px, 40px) scale(1.12); } 100% { transform: translate(40px, -30px) scale(.94); } }
.hero-spot { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(560px circle at var(--mx, 70%) var(--my, 40%), rgba(var(--a-rgb), .1), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero-title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(42px, 6.1vw, 84px);
  line-height: 1;
  letter-spacing: -.04em;
  margin: 26px 0 24px;
  /* translated headlines: never spill into the hero visual */
  overflow-wrap: break-word;
  hyphens: auto;
}
.ht-line { display: block; overflow: hidden; padding: .04em 0 .1em; margin-bottom: -.06em; }
.ht-in { display: inline-block; max-width: 100%; transform: translateY(105%); transition: transform 1.1s var(--ease-out); }
.ht-line + .ht-line .ht-in { transition-delay: .12s; }
/* keyword line inside the h1: reads as an eyebrow, carries the search terms */
.ht-kicker { display: block; margin-bottom: 16px; font: 600 13px/1.5 var(--ff-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--a); }
.ready .ht-in, html:not(.js) .ht-in { transform: none; }
.hero-sub { max-width: 540px; color: var(--muted); font-size: 18.5px; line-height: 1.62; }
.hero-sub .scramble { color: #fff; font-weight: 700; font-family: var(--ff-mono); font-size: .92em; padding: 1px 7px; border-radius: 6px; background: rgba(var(--a-rgb), .16); border: 1px solid rgba(var(--a-rgb), .35); white-space: nowrap; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-keys { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.keys-hint { display: inline-flex; align-items: center; gap: 8px; margin-left: 6px; color: var(--dim); font: 500 12.5px var(--ff-mono); }
.keys-hint [data-icon] .ico { width: 16px; height: 16px; }

.hero-visual { position: relative; height: 560px; perspective: 1700px; }
.hero-stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 7deg)) rotateY(var(--ry, -15deg)) rotateZ(1.2deg);
}
.hl { position: absolute; transform-style: preserve-3d; }
.hl-glow { left: 8%; right: 0; top: 14%; bottom: 10%; background: radial-gradient(closest-side, rgba(var(--a-rgb), .5), rgba(var(--a2-rgb), .18) 60%, transparent); filter: blur(30px); transform: translateZ(-160px); }
.hl-menu { left: 9%; top: 14%; transform: translateZ(0); }
.hl-wm { left: 0; top: 2%; transform: translateZ(80px); }
.hl-radar { right: -2%; top: 3%; transform: translateZ(130px); }
.hl-target { left: -7%; top: 51%; transform: translateZ(170px); }
.hl-card { left: 22%; bottom: 0; transform: translateZ(110px); }
.hl-toast { right: 2%; bottom: 16%; transform: translateZ(200px); }
.hl-wm > *, .hl-radar > *, .hl-target > *, .hl-card > * { animation: bob 7s ease-in-out infinite; }
.hl-radar > * { animation-delay: -2s; animation-duration: 8s; }
.hl-target > * { animation-delay: -4s; animation-duration: 6.5s; }
.hl-card > * { animation-delay: -1s; animation-duration: 9s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* hero menu (gamesense-style) */
.hm {
  width: 480px;
  height: 336px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #0b0a10;
  border: 1px solid #25222e;
  border-radius: 8px;
  font: 11px/1.3 var(--ff-ui);
  color: #c9c6d4;
  box-shadow: 0 50px 90px -30px #000, 0 0 0 1px #000, 0 0 80px -16px rgba(var(--a-rgb), .55);
}
.hm-line, .ssm-line { height: 2px; flex: none; background: linear-gradient(90deg, var(--a), var(--a2), var(--a)); background-size: 200% 100%; animation: lineSlide 5s linear infinite; }
@keyframes lineSlide { to { background-position: -200% 0; } }
.hm-title { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 12px; background: #0e0d14; border-bottom: 1px solid #1c1a23; flex: none; }
.hm-logo, .ssm-logo { font-weight: 700; font-size: 12px; color: #fff; letter-spacing: .01em; }
.hm-logo b, .ssm-logo b { color: var(--a); }
.hm-tag { color: #6f6b80; font-size: 10px; }
.hm-dots { margin-left: auto; display: flex; gap: 5px; }
.hm-dots i { width: 7px; height: 7px; border-radius: 50%; background: #2a2733; }
.hm-body { flex: 1; display: flex; min-height: 0; }
.hm-tabs { width: 50px; flex: none; background: #09080d; border-right: 1px solid #1c1a23; display: flex; flex-direction: column; padding: 4px 0; }
.hm-tab { position: relative; height: 44px; display: grid; place-items: center; color: #5b576a; transition: color .25s, background .25s; }
.hm-tab .ico { width: 18px; height: 18px; }
.hm-tab:hover { color: #a29eb2; }
.hm-tab.on { color: var(--a); background: linear-gradient(90deg, rgba(var(--a-rgb), .14), transparent); }
.hm-tab.on::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2px; background: var(--a); box-shadow: 0 0 10px var(--a); }
.hm-pane { flex: 1; min-width: 0; padding: 16px 12px 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; animation: paneIn .35s var(--ease); }
@keyframes paneIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.hm-group { position: relative; border: 1px solid #221f2a; background: #0e0d13; border-radius: 4px; padding: 13px 10px 8px; }
.hm-group > b { position: absolute; top: -7px; left: 8px; padding: 0 4px; background: #0b0a10; color: #ebe9f2; font-size: 10.5px; font-weight: 700; }
.hm-row { display: flex; align-items: center; gap: 7px; min-height: 21px; cursor: pointer; }
.hm-chk { width: 10px; height: 10px; flex: none; border: 1px solid #3a3646; background: #16141d; border-radius: 2px; transition: background .25s, box-shadow .25s, border-color .25s; }
.hm-row.on .hm-chk { background: linear-gradient(180deg, var(--a), var(--a2)); border-color: transparent; box-shadow: 0 0 8px rgba(var(--a-rgb), .7); }
.hm-row.on > span { color: #fff; }
.hm-key { margin-left: auto; font-size: 9px; color: #8a8696; border: 1px solid #2c2936; padding: 1px 4px; border-radius: 3px; background: #121118; }
.hm-sl { margin: 3px 0 8px; }
.hm-sl-top { display: flex; justify-content: space-between; color: #a7a3b3; margin-bottom: 4px; }
.hm-sl-top b { color: #fff; font-weight: 400; }
.hm-bar { height: 6px; background: #17151e; border: 1px solid #2a2733; border-radius: 3px; overflow: hidden; }
.hm-bar i { display: block; height: 100%; width: var(--v, 50%); background: linear-gradient(90deg, var(--a), var(--a2)); transition: width .9s var(--ease); }
.hm-combo { display: flex; justify-content: space-between; align-items: center; margin: 2px 0 7px; padding: 3px 7px; border: 1px solid #2a2733; background: #141219; border-radius: 3px; color: #d9d6e2; }
.hm-combo::after { content: "▾"; color: #6b6779; font-size: 9px; }
.hm-lbl { color: #8f8b9e; margin-top: 2px; }
.hm-sw { display: flex; gap: 5px; margin: 5px 0 6px; }
.hm-sw i { width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(255, 255, 255, .15); }
.hm-foot { height: 22px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; border-top: 1px solid #1c1a23; background: #0a090e; color: #5f5b6e; font-size: 10px; }
.hm-status { display: inline-flex; align-items: center; gap: 6px; }
.hm-status i { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; }

/* watermark */
.wm {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  background: rgba(10, 9, 15, .93);
  border: 1px solid #25222e;
  border-radius: 6px;
  font: 600 11px/1 var(--ff-mono);
  color: #c8c5d4;
  white-space: nowrap;
  box-shadow: 0 24px 40px -22px #000;
}
.wm::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; border-radius: 6px 6px 0 0; background: var(--grad); }
.wm b { color: #fff; font-weight: 700; }
.wm-logo { color: #fff; font-weight: 700; }
.wm-logo b { color: var(--a); }
.wm-sep { width: 1px; height: 12px; background: #2d2a37; }
.wm-badges { display: inline-flex; gap: 4px; }
.wm-badges span { padding: 3px 6px; border-radius: 3px; font-size: 9px; letter-spacing: .08em; color: #fff; background: rgba(var(--a-rgb), .28); border: 1px solid rgba(var(--a-rgb), .6); animation: badgeIn .3s var(--ease); }
@keyframes badgeIn { from { transform: scale(.6); opacity: 0; } }

.radar-card { width: 156px; height: 156px; border-radius: 50%; padding: 3px; background: conic-gradient(from 0deg, var(--a), var(--a2), var(--a)); box-shadow: 0 30px 60px -24px #000, 0 0 50px -10px rgba(var(--a-rgb), .6); }
.radar-card canvas { width: 150px; height: 150px; border-radius: 50%; background: #0a0910; }

.esp-card { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 12px; background: rgba(10, 9, 15, .9); border: 1px solid #25222e; box-shadow: 0 30px 50px -24px #000; backdrop-filter: blur(6px); }
.esp-box { position: relative; width: 50px; height: 62px; border-radius: 4px; background: rgba(var(--a-rgb), .1); }
.esp-box > i { position: absolute; width: 11px; height: 11px; border-color: var(--a); border-style: solid; border-width: 0; filter: drop-shadow(0 0 4px rgba(var(--a-rgb), .9)); }
.esp-box > i:nth-child(1) { left: 0; top: 0; border-left-width: 2px; border-top-width: 2px; }
.esp-box > i:nth-child(2) { right: 0; top: 0; border-right-width: 2px; border-top-width: 2px; }
.esp-box > i:nth-child(3) { left: 0; bottom: 0; border-left-width: 2px; border-bottom-width: 2px; }
.esp-box > i:nth-child(4) { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px; }
.esp-hp { position: absolute; left: -7px; top: 0; bottom: 0; width: 3px; background: #1b1922; border-radius: 2px; overflow: hidden; }
.esp-hp b { position: absolute; left: 0; right: 0; bottom: 0; height: var(--v, 100%); background: linear-gradient(0deg, #ef4444, #facc15 50%, #4ade80); transition: height .35s var(--ease); }
.esp-meta { display: flex; flex-direction: column; gap: 3px; }
.esp-name { color: #fff; font-weight: 800; font-size: 13.5px; }
.esp-sub { font: 500 11px var(--ff-mono); color: var(--muted); }

.pcard { width: 240px; padding: 11px 12px 12px; border-radius: 9px; background: rgba(10, 9, 15, .93); border: 1px solid #25222e; box-shadow: 0 30px 50px -24px #000; }
.pcard-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.pcard-name { font-weight: 800; color: #fff; font-size: 13px; }
.pcard-lvl { font: 500 10px var(--ff-mono); color: var(--muted); }
.pbar { position: relative; height: 15px; margin-top: 5px; border-radius: 3px; overflow: hidden; background: #15131b; border: 1px solid #23202b; }
.pbar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--v, 100%); transition: width .5s var(--ease); }
.pbar.hp i { background: linear-gradient(90deg, #991b1b, #ef4444); }
.pbar.mp i { background: linear-gradient(90deg, #1e40af, #3b82f6); }
.pbar.sp i { background: linear-gradient(90deg, #854d0e, #eab308); }
.pbar span { position: relative; display: block; text-align: right; padding-right: 6px; font: 600 9.5px/13px var(--ff-mono); color: #fff; text-shadow: 0 1px 0 #000; }
.pbar em { position: absolute; left: 6px; top: 0; font: 700 9px/13px var(--ff-mono); font-style: normal; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 0 #000; }

.hero-toast {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font: 600 12px var(--ff-mono);
  color: #fff;
  background: rgba(10, 9, 15, .92);
  border: 1px solid rgba(var(--a-rgb), .6);
  box-shadow: 0 0 40px -6px rgba(var(--a-rgb), .7);
  opacity: 0;
  transform: translateY(10px) scale(.96);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  white-space: nowrap;
}
.hero-toast.show { opacity: 1; transform: none; }
.hero-toast kbd { padding: 3px 6px; border-radius: 5px; background: var(--grad); font-size: 11px; }

.hero-stats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 54px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 255, 255, .025); backdrop-filter: blur(12px); overflow: hidden; }
.hstat { position: relative; padding: 22px 26px; display: flex; flex-direction: column; gap: 4px; }
.hstat + .hstat::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line2); }
.hstat b { font-family: var(--ff-display); font-weight: 700; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.03em; background: linear-gradient(180deg, #fff, #b9b5cc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hstat span { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.scroll-cue { position: absolute; left: 50%; bottom: 14px; width: 22px; height: 36px; margin-left: -11px; border-radius: 12px; border: 1.5px solid var(--line2); opacity: .7; }
.scroll-cue i { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--a); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- marquee ---------- */
.marquee { position: relative; height: 150px; overflow: hidden; margin-top: -6px; }
.mq { position: absolute; left: -4%; right: -4%; overflow: hidden; white-space: nowrap; }
.mq-a { top: 30px; padding: 15px 0; transform: rotate(-2.4deg); z-index: 2; background: linear-gradient(90deg, var(--a), var(--a2)); box-shadow: 0 20px 60px -20px rgba(var(--a-rgb), .75); }
.mq-b { top: 44px; padding: 15px 0; transform: rotate(1.8deg); z-index: 1; background: #0c0a13; border-block: 1px solid var(--line); }
.mq-track { display: inline-flex; animation: mq 46s linear infinite; font: 700 21px/1 var(--ff-display); text-transform: uppercase; letter-spacing: .01em; }
.mq-b .mq-track { animation-direction: reverse; animation-duration: 52s; }
.mq-track span { display: inline-flex; align-items: center; }
.mq-track span::after { content: ""; width: 9px; height: 9px; margin: 0 26px; transform: rotate(45deg); }
.mq-a .mq-track span { color: #0b0712; }
.mq-a .mq-track span::after { background: #0b0712; }
.mq-b .mq-track span { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .42); }
.mq-b .mq-track span:nth-child(3n) { color: #fff; -webkit-text-stroke: 0; }
.mq-b .mq-track span::after { border: 1.5px solid var(--a); }
.marquee:hover .mq-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { position: relative; padding: 128px 0; }
.sec-head { max-width: 760px; margin-bottom: 54px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(31px, 4.5vw, 58px);
  line-height: 1.04;
  letter-spacing: -.035em;
  margin: 18px 0 18px;
}
.sec-head p { color: var(--muted); font-size: 18px; line-height: 1.62; }
/* translated headings: wrap long words instead of spilling out */
.sec-head h2, .lens-copy h2, .cta h2, .start-step h3, .spec-mod h3, .faq-q span { overflow-wrap: break-word; hyphens: auto; }
.sec-head .btn { margin-top: 26px; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- hotkey cards ---------- */
.hk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.hk-card {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  overflow: hidden;
  transition: transform .5s var(--ease-out), border-color .35s, box-shadow .35s, opacity 1s var(--ease-out);
}
.hk-card:hover { transform: translateY(-6px); }
.hk-card.on { border-color: rgba(var(--a-rgb), .6); box-shadow: 0 0 0 1px rgba(var(--a-rgb), .25), 0 34px 70px -34px rgba(var(--a-rgb), .75); }
.hk-viz { position: relative; height: 176px; border-bottom: 1px solid var(--line); background: radial-gradient(120% 90% at 50% 0%, rgba(var(--a-rgb), .1), transparent 70%), #07060c; overflow: hidden; }
.hk-viz canvas { width: 100%; height: 100%; }
.hk-state {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font: 700 10px/1 var(--ff-mono);
  letter-spacing: .14em;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--dim);
  background: rgba(10, 9, 15, .85);
  border: 1px solid var(--line2);
  transition: .3s;
}
.hk-card.on .hk-state { color: #fff; background: rgba(var(--a-rgb), .3); border-color: rgba(var(--a-rgb), .7); box-shadow: 0 0 18px rgba(var(--a-rgb), .6); }
.hk-body { position: relative; z-index: 1; padding: 20px 20px 22px; }
.hk-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.hk-top h3 { font-family: var(--ff-display); font-weight: 600; font-size: 19px; letter-spacing: -.02em; }
.hk-body p { color: var(--muted); font-size: 14.5px; line-height: 1.58; margin-bottom: 12px; }
.hk-body .ticks li { font-size: 13.5px; }

/* ---------- demo ---------- */
.demo-sec { padding-top: 110px; }
.demo-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.demo-keys, .demo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dkey, .dbtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 15px 0 7px;
  border-radius: 13px;
  border: 1px solid var(--line2);
  background: rgba(255, 255, 255, .035);
  color: var(--muted);
  font-weight: 700;
  font-size: 13.5px;
  transition: color .25s, border-color .25s, background .25s, box-shadow .25s, transform .15s;
}
.dkey:hover, .dbtn:hover { color: #fff; border-color: rgba(var(--a-rgb), .5); }
.dkey:active, .dbtn:active { transform: translateY(2px); }
.dkey kbd { font-weight: 700; font-size: 12px; color: #fff; padding: 7px 8px 6px; border-radius: 8px; background: #1c1925; border: 1px solid #2d2939; box-shadow: 0 3px 0 #0a090e; transition: background .25s, box-shadow .25s; }
.dkey > i { width: 8px; height: 8px; border-radius: 50%; background: #3b3747; transition: .25s; }
.dkey[aria-pressed="true"] { color: #fff; border-color: rgba(var(--a-rgb), .65); background: rgba(var(--a-rgb), .14); box-shadow: 0 0 30px -12px rgba(var(--a-rgb), .9); }
.dkey[aria-pressed="true"] kbd { background: var(--grad); border-color: transparent; box-shadow: 0 3px 0 rgba(var(--a-rgb), .4); }
.dkey[aria-pressed="true"] > i { background: #4ade80; box-shadow: 0 0 10px #4ade80; }
.dbtn { padding: 0 14px; }
.dbtn [data-icon] .ico { width: 16px; height: 16px; }
.dbtn[aria-pressed="true"] { color: #fff; border-color: rgba(var(--a-rgb), .45); }
.demo-shell {
  position: relative;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(140deg, rgba(var(--a-rgb), .7), rgba(255, 255, 255, .07) 28%, rgba(255, 255, 255, .04) 72%, rgba(var(--a2-rgb), .6));
  box-shadow: 0 50px 140px -50px rgba(var(--a-rgb), .7);
}
.demo-view { position: relative; aspect-ratio: 16 / 9; border-radius: 23px; overflow: hidden; background: #05040a; isolation: isolate; }
.demo-view > canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: default; }
.demo-view.dragging > canvas { cursor: grabbing; }
.demo-start { position: absolute; inset: 0; z-index: 7; display: grid; place-content: center; justify-items: center; gap: 12px; pointer-events: none; transition: opacity .45s var(--ease), visibility .45s; }
.demo-start > * { pointer-events: auto; }
.demo-start p { font: 500 12.5px var(--ff-mono); color: rgba(255, 255, 255, .6); text-shadow: 0 1px 4px #000; }
.demo-start.hide { opacity: 0; visibility: hidden; }
.demo-start-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 12px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  background: rgba(12, 10, 18, .86);
  border: 1px solid rgba(var(--a-rgb), .7);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 0 6px rgba(var(--a-rgb), .12), 0 24px 60px -12px rgba(var(--a-rgb), .8);
  transition: transform .2s var(--ease);
}
.demo-start-btn:hover { transform: scale(1.04); }
.demo-start-btn kbd { font-weight: 700; font-size: 14px; padding: 8px 10px; border-radius: 9px; background: var(--grad); box-shadow: 0 3px 0 rgba(0, 0, 0, .4); }
.dsb-ring { position: absolute; inset: -2px; border-radius: inherit; border: 2px solid rgba(var(--a-rgb), .85); animation: dsb 1.9s var(--ease-out) infinite; pointer-events: none; }
@keyframes dsb { from { transform: scale(1); opacity: .9; } to { transform: scale(1.18, 1.5); opacity: 0; } }
.demo-unloaded { position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; gap: 14px; background: rgba(5, 4, 10, .35); }
.demo-unloaded[hidden] { display: none; }
.demo-unloaded p { font: 600 14px var(--ff-mono); color: #d6d3e3; }
.demo-unloaded p b { color: var(--a); }
.demo-menu-dock { display: none; }
.demo-hints { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 20px; color: var(--muted); font-size: 13.5px; }
.demo-hints span { display: inline-flex; align-items: center; gap: 8px; }
.demo-hints [data-icon] .ico { width: 16px; height: 16px; color: var(--a); }
.demo-note { margin-top: 10px; text-align: center; color: var(--dim-text); font: 500 12px var(--ff-mono); }

/* ---------- ESP lens ---------- */
.lens-view {
  --lx: 70%;
  --ly: 50%;
  --lr: 170px;
  position: relative;
  height: min(80vh, 720px);
  min-height: 540px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #05040a;
  isolation: isolate;
  box-shadow: 0 40px 120px -50px rgba(var(--a-rgb), .55);
}
.lens-view > canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#lensEsp {
  -webkit-mask-image: radial-gradient(circle var(--lr) at var(--lx) var(--cy, var(--ly)), #000 calc(var(--lr) - 2px), transparent var(--lr));
  mask-image: radial-gradient(circle var(--lr) at var(--lx) var(--cy, var(--ly)), #000 calc(var(--lr) - 2px), transparent var(--lr));
}
.lens-view.all #lensEsp { -webkit-mask-image: none; mask-image: none; }
.lens-ring {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: calc(var(--lr) * 2);
  height: calc(var(--lr) * 2);
  border-radius: 50%;
  transform: translate(calc(var(--lx) - var(--lr)), calc(var(--ly) - var(--lr)));
  border: 1.5px solid rgba(var(--a-rgb), .95);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), 0 0 50px rgba(var(--a-rgb), .5), inset 0 0 60px rgba(var(--a-rgb), .22);
  pointer-events: none;
  transition: opacity .4s, width .4s var(--ease), height .4s var(--ease);
}
.lens-ring > i { position: absolute; background: rgba(var(--a-rgb), .95); }
.lens-ring > i:nth-child(1), .lens-ring > i:nth-child(2) { left: 50%; width: 1.5px; height: 14px; margin-left: -.75px; }
.lens-ring > i:nth-child(1) { top: -7px; }
.lens-ring > i:nth-child(2) { bottom: -7px; }
.lens-ring > i:nth-child(3), .lens-ring > i:nth-child(4) { top: 50%; height: 1.5px; width: 14px; margin-top: -.75px; }
.lens-ring > i:nth-child(3) { left: -7px; }
.lens-ring > i:nth-child(4) { right: -7px; }
.lens-ring span { position: absolute; left: 50%; top: -30px; transform: translateX(-50%); font: 700 10px/1 var(--ff-mono); letter-spacing: .16em; color: #fff; padding: 5px 8px; border-radius: 999px; background: rgba(var(--a-rgb), .85); }
.lens-view.all .lens-ring { opacity: 0; }
.lens-copy {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: min(540px, 50%);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(90deg, rgba(5, 4, 10, .96) 0%, rgba(5, 4, 10, .9) 62%, rgba(5, 4, 10, 0) 100%);
  pointer-events: none;
}
.lens-copy > * { pointer-events: auto; }
.lens-copy h2 { font-family: var(--ff-display); font-weight: 700; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -.035em; margin: 18px 0 16px; }
.lens-copy p { color: var(--muted); font-size: 16.5px; line-height: 1.62; margin-bottom: 22px; }
.lens-toggle { align-self: flex-start; display: inline-flex; align-items: center; gap: 9px; margin-top: 24px; height: 42px; padding: 0 16px; border-radius: 12px; font-weight: 700; font-size: 14px; border: 1px solid rgba(var(--a-rgb), .55); background: rgba(var(--a-rgb), .12); transition: background .25s; }
.lens-toggle:hover { background: rgba(var(--a-rgb), .24); }
.lens-toggle [data-icon] .ico { width: 17px; height: 17px; color: var(--a); }

/* ---------- automation ---------- */
.auto-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.auto-copy .sec-head { margin-bottom: 30px; }
.term { border-radius: 16px; background: #08070d; border: 1px solid var(--line); overflow: hidden; box-shadow: 0 30px 70px -36px #000; }
.term-top { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #0c0b12; border-bottom: 1px solid var(--line); }
.term-top i { width: 10px; height: 10px; border-radius: 50%; background: #2a2733; }
.term-top i:first-child { background: rgba(var(--a-rgb), .8); }
.term-top span { margin-left: 8px; font: 500 12px var(--ff-mono); color: var(--dim); }
.term-body {
  height: 290px;
  padding: 14px 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  font: 500 12.5px/1.8 var(--ff-mono);
  color: #b9b5c9;
  -webkit-mask-image: linear-gradient(transparent, #000 35%);
  mask-image: linear-gradient(transparent, #000 35%);
}
.term-body .ln { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: lnIn .4s var(--ease-out); }
@keyframes lnIn { from { opacity: 0; transform: translateX(-8px); } }
.ln .t { color: #545066; }
.ln .k { color: var(--a); font-weight: 700; }
.ln .ok { color: #4ade80; }
.ln .wa { color: #fbbf24; }
.ln .ba { color: #f87171; }
.ln .mu { color: #77738b; }
.auto-diagram { position: relative; }
.auto-diagram svg { width: 100%; height: auto; overflow: visible; }
.ad-ring { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 1.5; }
.ad-flow { fill: none; stroke: url(#adGrad); stroke-width: 2.5; stroke-dasharray: 6 10; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -32; } }
.ad-spoke { stroke: rgba(255, 255, 255, .08); stroke-width: 1.2; stroke-dasharray: 3 6; }
.ad-spoke.hot { stroke: rgba(var(--a-rgb), .9); stroke-dasharray: none; }
.ad-node circle.bg { fill: #0d0b14; stroke: rgba(255, 255, 255, .12); stroke-width: 1.5; transition: stroke .3s, fill .3s; }
.ad-node.hot circle.bg { fill: rgba(var(--a-rgb), .22); stroke: var(--a); }
.ad-node circle.halo { fill: none; stroke: var(--a); stroke-width: 2; opacity: 0; }
.ad-node.hot circle.halo { animation: halo 1.4s var(--ease-out) infinite; }
@keyframes halo { from { opacity: .9; r: 34; } to { opacity: 0; r: 54; } }
.ad-node text { fill: #e8e5f3; font: 700 12px var(--ff-mono); letter-spacing: .08em; text-anchor: middle; }
.ad-node text.sub { fill: var(--dim); font: 500 10px var(--ff-mono); letter-spacing: 0; }
.ad-node.hot text.sub { fill: var(--muted); }
.ad-node .ico-g { color: var(--muted); transition: color .3s; }
.ad-node.hot .ico-g { color: #fff; }
.ad-sat circle.bg { fill: #0b0a11; stroke: rgba(255, 255, 255, .1); }
.ad-core text { text-anchor: middle; }
.ad-dot { fill: #fff; filter: drop-shadow(0 0 6px var(--a)) drop-shadow(0 0 12px var(--a)); }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(208px, auto); gap: 16px; }
.bc {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: transform .5s var(--ease-out), border-color .35s, opacity 1s var(--ease-out);
}
.bc:hover { transform: translateY(-5px); border-color: rgba(var(--a-rgb), .3); }
.bc.w2 { grid-column: span 2; }
.bc.h2 { grid-row: span 2; }
.bc > * { position: relative; z-index: 1; }
.bc-head { display: flex; align-items: center; gap: 12px; }
.bc-icon { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--a); background: rgba(var(--a-rgb), .12); border: 1px solid rgba(var(--a-rgb), .3); }
.bc-icon .ico { width: 20px; height: 20px; }
.bc-head h3 { font-family: var(--ff-display); font-weight: 600; font-size: 16.5px; letter-spacing: -.02em; }
.bc-tag { display: block; font: 500 11px var(--ff-mono); color: var(--dim); letter-spacing: .06em; margin-top: 2px; }
.bc-key { margin-left: auto; font: 700 12px var(--ff-mono); color: #fff; padding: 5px 8px; border-radius: 7px; background: #1c1925; border: 1px solid #2d2939; box-shadow: 0 3px 0 #0a090e; }
.bc-blurb { margin-top: 14px; color: var(--muted); font-size: 14.5px; line-height: 1.58; }
.bc-vis { margin-top: 18px; flex: 1; min-height: 0; display: flex; align-items: center; }
.bc-foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; font: 600 12px var(--ff-mono); color: var(--dim); }
.bc-foot b { color: var(--a); }
.bc-foot .go { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); transition: color .25s, gap .25s; }
.bc-foot .go .ico { width: 15px; height: 15px; }
.bc:hover .bc-foot .go { color: #fff; gap: 10px; }

/* bento visuals */
.v-skills { width: 100%; display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.v-skills i { aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center; font: 700 12px var(--ff-mono); font-style: normal; color: var(--dim); background: #14121b; border: 1px solid #25222f; box-shadow: 0 3px 0 #09080d; transition: all .25s; }
.v-skills i.hot { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 0 22px -2px rgba(var(--a-rgb), .9); transform: translateY(-3px); }
.v-attack { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.v-attack-scene { position: relative; height: 150px; border-radius: 14px; background: radial-gradient(100% 120% at 50% 100%, rgba(var(--a-rgb), .14), transparent 70%), #08070d; border: 1px solid var(--line); overflow: hidden; }
.v-attack-scene canvas { width: 100%; height: 100%; }
.v-attack-read { display: flex; justify-content: space-between; font: 600 11.5px var(--ff-mono); color: var(--muted); }
.v-attack-read b { color: #fff; }
.v-esp { position: relative; width: 100%; height: 120px; }
.v-esp svg { width: 100%; height: 100%; }
.v-inv { width: 100%; display: grid; grid-template-columns: repeat(15, 1fr); gap: 5px; }
.v-drops { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.v-drops div { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 9px; background: #100e17; border: 1px solid #201d2a; font: 600 12px var(--ff-mono); color: #d4d1e1; }
.v-drops div i { width: 8px; height: 8px; transform: rotate(45deg); border-radius: 1.5px; background: var(--c); box-shadow: 0 0 8px var(--c); flex: none; }
.v-drops div em { margin-left: auto; font-style: normal; font-size: 10.5px; }
.v-drops .ok em { color: #4ade80; }
.v-drops .no { color: #7b778d; }
.v-drops .no em { color: #f87171; }
.v-drops .got { border-color: rgba(var(--a-rgb), .55); background: rgba(var(--a-rgb), .12); }
.v-inv i { position: relative; aspect-ratio: 1; border-radius: 6px; background: #13111a; border: 1px solid #23202c; transition: background .3s, border-color .3s, transform .3s; }
.v-inv i::after { content: ""; position: absolute; inset: 28%; border-radius: 3px; background: var(--c, transparent); opacity: .9; }
.v-inv i.keep { border-color: rgba(74, 222, 128, .5); }
.v-inv i.sold { transform: scale(.85); background: rgba(var(--a-rgb), .3); border-color: var(--a); }
.v-inv i.sold::after { opacity: 0; }
.v-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font: 500 11px var(--ff-mono); color: var(--dim); }
.v-legend span { display: inline-flex; align-items: center; gap: 6px; }
.v-legend span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.v-col { width: 100%; }
.v-bars { width: 100%; display: flex; flex-direction: column; gap: 9px; }
.v-bar { display: grid; grid-template-columns: 26px 1fr 40px; align-items: center; gap: 10px; font: 700 11px var(--ff-mono); color: var(--muted); }
.v-bar .t { position: relative; height: 10px; border-radius: 5px; background: #15131c; overflow: hidden; }
.v-bar .t i { position: absolute; inset: 0 auto 0 0; width: var(--v, 80%); border-radius: inherit; transition: width .6s var(--ease); }
.v-bar.hp .t i { background: linear-gradient(90deg, #991b1b, #ef4444); }
.v-bar.mp .t i { background: linear-gradient(90deg, #1e40af, #3b82f6); }
.v-bar.sp .t i { background: linear-gradient(90deg, #854d0e, #eab308); }
.v-bar kbd { justify-self: end; font-size: 11px; color: #fff; padding: 3px 7px; border-radius: 6px; background: #1c1925; border: 1px solid #2d2939; transition: background .2s, box-shadow .2s; }
.v-bar kbd.hit { background: var(--grad); box-shadow: 0 0 16px rgba(var(--a-rgb), .9); }
.v-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.v-swatches button { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--c1), var(--c2)); border: 2px solid transparent; transition: transform .2s var(--ease), border-color .2s; }
.v-swatches button:hover { transform: translateY(-2px) scale(1.06); }
.v-swatches button[aria-checked="true"] { border-color: #fff; }
.v-xh { display: flex; gap: 10px; margin-top: 12px; }
.v-xh i { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; background: #0f0d15; border: 1px solid var(--line); }
.v-xh svg { width: 22px; height: 22px; }
.v-speed { width: 100%; display: flex; align-items: center; gap: 16px; }
.v-speed svg { width: 120px; height: 72px; flex: none; }
.v-speed b { font-family: var(--ff-display); font-size: 26px; letter-spacing: -.03em; }
.v-speed span { display: block; font: 500 11px var(--ff-mono); color: var(--dim); }
.v-slots { width: 100%; display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.v-slots i { aspect-ratio: 1; border-radius: 6px; background: #13111a; border: 1px dashed #2a2733; }
.v-slots i.f { background: rgba(var(--a-rgb), .22); border: 1px solid rgba(var(--a-rgb), .55); }
.v-rest { width: 100%; }
.v-rest svg { width: 100%; height: 92px; }

/* ---------- spec sheet ---------- */
.spec-tools { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 14px; }
.spec-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(640px, 100%);
  height: 58px;
  padding: 0 14px 0 18px;
  border-radius: 16px;
  border: 1px solid var(--line2);
  background: rgba(255, 255, 255, .04);
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.spec-search:focus-within { border-color: rgba(var(--a-rgb), .75); background: rgba(var(--a-rgb), .06); box-shadow: 0 0 0 4px rgba(var(--a-rgb), .15); }
.spec-search [data-icon] .ico { width: 20px; height: 20px; color: var(--a); }
.spec-search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; font-size: 16px; }
.spec-search input::placeholder { color: var(--dim); }
.spec-search input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.spec-search kbd { font-size: 12px; color: var(--muted); padding: 4px 8px; border-radius: 7px; border: 1px solid var(--line2); }
.spec-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 1040px; }
.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  transition: color .2s, background .2s, border-color .2s;
}
.chip-btn:hover { color: #fff; border-color: var(--line2); }
.chip-btn .ico { width: 14px; height: 14px; }
.chip-btn em { font-style: normal; font: 600 10.5px var(--ff-mono); color: var(--dim); }
.chip-btn.on { color: #fff; background: rgba(var(--a-rgb), .18); border-color: rgba(var(--a-rgb), .65); }
.chip-btn.on em { color: rgba(255, 255, 255, .7); }
.spec-count { text-align: center; color: var(--dim-text); font: 500 12.5px var(--ff-mono); margin-bottom: 26px; min-height: 1.2em; }
.spec-count b { color: var(--a); }
.spec-grid { columns: 3 330px; column-gap: 16px; }
.spec-mod { break-inside: avoid; margin-bottom: 16px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); padding: 18px 18px 8px; animation: paneIn .45s var(--ease); }
.spec-mod.flash { border-color: rgba(var(--a-rgb), .7); box-shadow: 0 0 0 4px rgba(var(--a-rgb), .14); }
.spec-mod h3 { display: flex; align-items: center; gap: 10px; font-family: var(--ff-display); font-weight: 600; font-size: 15px; letter-spacing: -.01em; margin-bottom: 8px; }
.spec-mod h3 .ico { width: 18px; height: 18px; color: var(--a); }
.spec-mod h3 kbd { font-size: 11px; color: #fff; padding: 3px 6px; border-radius: 6px; background: #1c1925; border: 1px solid #2d2939; }
.spec-mod h3 em { margin-left: auto; font: 600 11px var(--ff-mono); font-style: normal; color: var(--dim-text); }
.spec-mod li { display: flex; gap: 11px; padding: 9px 0; border-top: 1px dashed rgba(255, 255, 255, .07); font-size: 14px; line-height: 1.55; color: #d4d1e1; }
.spec-mod li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .6em; border-radius: 1.5px; background: var(--a); transform: rotate(45deg); box-shadow: 0 0 8px rgba(var(--a-rgb), .8); }
.spec-mod mark { background: rgba(var(--a-rgb), .38); color: #fff; border-radius: 3px; padding: 0 2px; }
.spec-empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 64px; align-items: start; }
.faq-grid .sec-head { position: sticky; top: 110px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 22px 4px; text-align: left; font-weight: 700; font-size: 17px; transition: color .25s; }
.faq-q:hover { color: #fff; }
.faq-q i { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line2); transition: transform .4s var(--ease), background .3s, border-color .3s; }
.faq-q i::before, .faq-q i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; margin: -.75px 0 0 -5.5px; background: #fff; border-radius: 2px; }
.faq-q i::after { transform: rotate(90deg); }
.faq-item.open .faq-q i { transform: rotate(45deg); background: rgba(var(--a-rgb), .2); border-color: rgba(var(--a-rgb), .65); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a p { padding: 0 54px 24px 4px; color: var(--muted); font-size: 15.5px; line-height: 1.72; }
.faq-keys { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: -10px 0 18px; padding: 0 4px; list-style: none; color: #d8d5e6; font-size: 14.5px; }
.faq-keys li { display: inline-flex; align-items: center; gap: 8px; }
.faq-a kbd { font-size: 12px; color: #fff; padding: 2px 6px; border-radius: 5px; background: #1c1925; border: 1px solid #2d2939; }

/* ---------- CTA ---------- */
.cta-sec { padding: 40px 0 120px; }
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 30px;
  padding: 104px 40px;
  text-align: center;
  border: 1px solid rgba(var(--a-rgb), .4);
  background: radial-gradient(900px 420px at 50% -10%, rgba(var(--a-rgb), .42), transparent 70%), radial-gradient(700px 300px at 50% 120%, rgba(var(--a2-rgb), .25), transparent 70%), #08060e;
  box-shadow: 0 60px 140px -60px rgba(var(--a-rgb), .8);
}
.cta-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.cta-inner { position: relative; z-index: 2; }
.cta h2 { font-family: var(--ff-display); font-weight: 700; font-size: clamp(34px, 5.4vw, 70px); line-height: 1.02; letter-spacing: -.04em; margin: 20px auto 16px; max-width: 900px; }
.cta p { color: #cfcbe0; font-size: 18px; }
.cta-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.cta-keys kbd {
  position: absolute;
  z-index: 1;
  font-weight: 700;
  font-size: 17px;
  padding: 14px 16px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(180deg, #2a2735, #17151f);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 5px 0 #0a090e, 0 20px 40px -12px #000;
  animation: floaty 7s ease-in-out infinite;
}
.cta-keys kbd:nth-child(1) { left: 7%; top: 18%; transform: rotate(-14deg); }
.cta-keys kbd:nth-child(2) { left: 12%; bottom: 16%; transform: rotate(10deg); animation-delay: -2s; }
.cta-keys kbd:nth-child(3) { right: 9%; top: 20%; transform: rotate(12deg); animation-delay: -4s; background: linear-gradient(180deg, rgba(var(--a-rgb), .8), rgba(var(--a2-rgb), .5)); box-shadow: 0 5px 0 rgba(var(--a-rgb), .35), 0 0 40px rgba(var(--a-rgb), .7); }
.cta-keys kbd:nth-child(4) { right: 6%; bottom: 18%; transform: rotate(-8deg); animation-delay: -1s; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

/* ---------- footer ---------- */
/* ---------- get started ---------- */
.start-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: none; }
.start-step { border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)); padding: 26px 24px 28px; transition: transform .5s var(--ease-out), border-color .35s, opacity 1s var(--ease-out); }
.start-step:hover { transform: translateY(-6px); }
.start-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.start-no { font: 700 13px/1 var(--ff-mono); letter-spacing: .14em; color: var(--a); }
.start-top [data-icon] { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: #fff; background: rgba(var(--a-rgb), .14); border: 1px solid rgba(var(--a-rgb), .35); }
.start-top [data-icon] .ico { width: 20px; height: 20px; }
.start-step h3 { font: 700 19px/1.3 var(--ff-display); letter-spacing: -.02em; margin-bottom: 10px; }
.start-step p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.start-req { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 18px; padding: 26px 28px; border-radius: 22px; border: 1px solid rgba(var(--a-rgb), .28); background: radial-gradient(120% 140% at 0% 0%, rgba(var(--a-rgb), .12), transparent 60%), rgba(255, 255, 255, .02); }
.start-req h3 { font: 600 12px/1 var(--ff-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--a); margin-bottom: 8px; }
.start-req .ticks { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 0 34px; }
.start-req .ticks a { color: #fff; text-decoration: underline; text-decoration-color: rgba(var(--a-rgb), .6); text-underline-offset: 3px; }
.start-btns { display: flex; flex-wrap: wrap; gap: 10px; flex: none; }

.footer { position: relative; padding-top: 76px; border-top: 1px solid var(--line); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; }
.f-brand p { margin-top: 16px; max-width: 340px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
/* "As seen on elitepvpers" badge under the footer blurb */
.f-seen { display: inline-flex; flex-direction: column; gap: 10px; margin-top: 22px; padding: 14px 18px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); transition: border-color .25s, background .25s, transform .25s; }
.footer-grid .f-seen { align-items: flex-start; }
.f-seen:hover { border-color: rgba(var(--a-rgb), .5); background: rgba(var(--a-rgb), .07); transform: translateY(-2px); }
.f-seen-label { font: 600 11px var(--ff-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim-text); }
.f-seen img { display: block; height: 34px; width: auto; max-width: 220px; opacity: .9; transition: opacity .25s; }
.f-seen:hover img { opacity: 1; }
.f-col h3 { font: 600 11.5px var(--ff-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim-text); margin-bottom: 14px; }
.f-col a { display: block; width: fit-content; padding: 6px 0; color: var(--muted); font-size: 14.5px; font-weight: 600; transition: color .2s, transform .2s; }
.f-col a:hover { color: #fff; transform: translateX(3px); }
/* language versions: plain crawlable links to every localized homepage */
.f-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; margin-top: 46px; }
.f-langs h3 { margin: 0 12px 0 0; font: 600 11.5px var(--ff-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim-text); }
.f-langs a { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 10px; border-radius: 999px; color: var(--muted); font-size: 13.5px; font-weight: 600; border: 1px solid transparent; transition: color .2s, border-color .2s, background .2s; }
.f-langs a:hover { color: #fff; border-color: var(--line2); }
.f-langs a[aria-current] { color: #fff; border-color: rgba(var(--a-rgb), .55); background: rgba(var(--a-rgb), .12); }
.f-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 54px; padding: 26px var(--gutter); border-top: 1px solid var(--line); color: var(--dim); font-size: 12.5px; line-height: 1.6; }
.f-bottom span:last-child { max-width: 680px; text-align: right; }
.f-mega {
  --mx: 50%;
  --my: 50%;
  position: relative;
  text-align: center;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(56px, 15.6vw, 236px);
  line-height: .78;
  letter-spacing: -.055em;
  user-select: none;
  padding-top: 10px;
  margin-bottom: -.1em;
}
.f-mega span {
  display: inline-block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .09);
  background: radial-gradient(340px circle at var(--mx) var(--my), rgba(var(--a-rgb), .95), rgba(var(--a2-rgb), .5) 35%, transparent 60%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* =========================================================================
   Overlay menu (the demo's full menu)
   ========================================================================= */
.ssm {
  position: absolute;
  z-index: 6;
  left: 0;
  top: 0;
  width: 560px;
  height: 450px;
  display: flex;
  flex-direction: column;
  background: rgba(11, 10, 16, .97);
  border: 1px solid #27242f;
  border-radius: 7px;
  font: 11px/1.35 var(--ff-ui);
  color: #c9c6d4;
  box-shadow: 0 40px 90px -30px #000, 0 0 0 1px #000, 0 0 70px -20px rgba(var(--a-rgb), .45);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  user-select: none;
  -webkit-user-select: none;
}
.ssm.hidden { opacity: 0; visibility: hidden; transform: scale(.97); pointer-events: none; }
.ssm-head { display: flex; align-items: center; gap: 10px; height: 30px; flex: none; padding: 0 6px 0 12px; background: #0e0d14; border-bottom: 1px solid #1d1b24; cursor: move; touch-action: none; }
.ssm-crumb { color: #6f6b80; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ssm-x { margin-left: auto; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 4px; color: #6f6b80; }
.ssm-x:hover { background: #1c1a24; color: #fff; }
.ssm-x .ico { width: 13px; height: 13px; }
.ssm-body { flex: 1; display: flex; min-height: 0; }
.ssm-nav { width: 58px; flex: none; display: flex; flex-direction: column; padding: 4px 0; background: #09080d; border-right: 1px solid #1d1b24; overflow-y: auto; scrollbar-width: none; }
.ssm-nav::-webkit-scrollbar { display: none; }
.ssm-tab { position: relative; height: 47px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #5b576a; font-size: 8.5px; letter-spacing: .02em; transition: color .2s, background .2s; }
.ssm-tab .ico { width: 17px; height: 17px; }
.ssm-tab:hover { color: #a9a5b8; }
.ssm-tab.on { color: var(--a); background: linear-gradient(90deg, rgba(var(--a-rgb), .14), transparent); }
.ssm-tab.on::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2px; background: var(--a); box-shadow: 0 0 10px var(--a); }
.ssm-tab.on span { color: #ddd9e8; }
.ssm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ssm-subs { display: flex; gap: 2px; padding: 7px 10px 0; flex: none; border-bottom: 1px solid #1d1b24; overflow-x: auto; scrollbar-width: none; }
.ssm-subs:empty { display: none; }
.ssm-sub { padding: 6px 11px 7px; border-radius: 4px 4px 0 0; color: #7d7990; white-space: nowrap; }
.ssm-sub:hover { color: #d2cfdc; }
.ssm-sub.on { color: #fff; background: #13111a; box-shadow: inset 0 2px 0 var(--a); }
.ssm-pane { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 10px 10px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-content: start; scrollbar-width: thin; scrollbar-color: #2c2937 transparent; overscroll-behavior: contain; }
.ssm-pane::-webkit-scrollbar { width: 6px; }
.ssm-pane::-webkit-scrollbar-thumb { background: #2c2937; border-radius: 3px; }
.ssm-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ssm-grp { position: relative; border: 1px solid #221f2a; background: #0e0d13; border-radius: 4px; padding: 13px 9px 7px; }
.ssm-gt { position: absolute; top: -7px; left: 7px; padding: 0 4px; background: rgb(11, 10, 16); color: #ebe9f2; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.ssm-c { display: flex; align-items: center; gap: 7px; min-height: 22px; }
.ssm-chk { display: flex; align-items: center; gap: 7px; min-height: 22px; width: 100%; text-align: left; color: #c9c6d4; }
.ssm-chk .b { width: 10px; height: 10px; flex: none; border: 1px solid #3a3646; background: #16141d; border-radius: 2px; transition: background .2s, box-shadow .2s; }
.ssm-chk:hover .b { border-color: #565166; }
.ssm-chk.on .b { background: linear-gradient(180deg, var(--a), var(--a2)); border-color: transparent; box-shadow: 0 0 7px rgba(var(--a-rgb), .65); }
.ssm-chk.on > span { color: #fff; }
.ssm-chk > span { flex: 1; min-width: 0; }
.ssm-kb { font-size: 9px; color: #8a8696; border: 1px solid #2c2936; padding: 1px 4px; border-radius: 3px; background: #121118; }
.ssm-sw { width: 16px; height: 10px; border-radius: 2px; border: 1px solid rgba(255, 255, 255, .25); flex: none; position: relative; overflow: hidden; }
.ssm-sw input { position: absolute; inset: -8px; width: 40px; height: 30px; opacity: 0; cursor: pointer; }
.ssm-sl { padding: 2px 0 5px; }
.ssm-sl-l { display: flex; justify-content: space-between; color: #a5a1b2; margin-bottom: 3px; }
.ssm-sl-bar { position: relative; height: 15px; border-radius: 3px; background: #16141d; border: 1px solid #2a2733; overflow: hidden; cursor: ew-resize; touch-action: none; }
.ssm-sl-bar:hover { border-color: #3d394a; }
.ssm-sl-bar > i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, rgba(var(--a-rgb), .85), rgba(var(--a2-rgb), .85)); }
.ssm-sl-bar > b { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 400; font-size: 10px; text-shadow: 0 1px 1px #000, 0 0 3px #000; }
.ssm-sl-in, .ssm-tx input, .ssm-add input, .ssm-search { width: 100%; height: 19px; padding: 0 6px; border-radius: 3px; background: #121017; border: 1px solid rgba(var(--a-rgb), .6); color: #fff; font: 11px var(--ff-ui); outline: 0; }
.ssm-tx { display: flex; flex-direction: column; gap: 3px; padding: 2px 0 5px; }
.ssm-tx > span { color: #a5a1b2; }
.ssm-tx input, .ssm-add input, .ssm-search { border-color: #2a2733; }
.ssm-tx input:focus, .ssm-add input:focus, .ssm-search:focus { border-color: rgba(var(--a-rgb), .7); }
.ssm-cb { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 2px 0 5px; }
.ssm-cb > span { color: #a5a1b2; }
.ssm-cb-btn { display: flex; justify-content: space-between; align-items: center; height: 19px; padding: 0 6px; border-radius: 3px; background: #141219; border: 1px solid #2a2733; color: #e1dee9; text-align: left; }
.ssm-cb-btn:hover { border-color: #3d394a; }
.ssm-cb-btn::after { content: "▾"; color: #6b6779; font-size: 9px; }
.ssm-dd { position: absolute; left: 0; right: 0; top: 100%; z-index: 10; margin-top: -3px; padding: 3px; border-radius: 3px; background: #121017; border: 1px solid #34303f; box-shadow: 0 14px 30px -8px #000; }
.ssm-dd button { display: block; width: 100%; padding: 4px 6px; border-radius: 2px; text-align: left; color: #c9c6d4; }
.ssm-dd button:hover { background: #1f1c28; color: #fff; }
.ssm-dd button.on { color: var(--a); }
.ssm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: 100%; height: 21px; padding: 0 8px; margin: 2px 0 4px; border-radius: 3px; background: #16141d; border: 1px solid #2c2936; color: #dad7e3; white-space: nowrap; transition: background .15s, border-color .15s; }
.ssm-btn:hover { background: #1e1b27; border-color: rgba(var(--a-rgb), .55); color: #fff; }
.ssm-btn:active { background: rgba(var(--a-rgb), .25); }
.ssm-btn.acc { background: linear-gradient(180deg, rgba(var(--a-rgb), .4), rgba(var(--a-rgb), .2)); border-color: rgba(var(--a-rgb), .6); color: #fff; }
.ssm-btn.warn:hover { border-color: #f87171; }
.ssm-btns { display: flex; gap: 4px; }
.ssm-btns .ssm-btn { flex: 1; min-width: 0; }
.ssm-note { color: #77738a; font-size: 10px; line-height: 1.4; padding: 2px 0 4px; }
.ssm-note b { color: #b8b4c6; font-weight: 400; }
.ssm-add { display: flex; gap: 4px; padding: 2px 0 4px; }
.ssm-add input { flex: 1; min-width: 0; }
.ssm-add .ssm-btn { width: auto; margin: 0; height: 19px; }
.ssm-list { max-height: 112px; overflow-y: auto; margin: 2px 0 5px; border: 1px solid #1f1c27; border-radius: 3px; background: #0b0a0f; scrollbar-width: thin; scrollbar-color: #2c2937 transparent; }
.ssm-list.tall { max-height: 170px; }
.ssm-li { display: flex; align-items: center; gap: 6px; min-height: 20px; padding: 0 3px 0 6px; border-bottom: 1px solid #16141c; color: #c9c6d4; white-space: nowrap; }
.ssm-li:last-child { border-bottom: 0; }
.ssm-li:hover { background: #121019; }
.ssm-li > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ssm-li em { font-style: normal; color: #6f6b80; font-size: 10px; }
.ssm-li .x, .ssm-li .a { flex: none; height: 15px; min-width: 15px; padding: 0 4px; border-radius: 2px; display: grid; place-items: center; color: #77738a; font-size: 10px; }
.ssm-li .x:hover { background: #3a1f25; color: #fca5a5; }
.ssm-li .a { color: var(--a); border: 1px solid rgba(var(--a-rgb), .35); }
.ssm-li .a:hover { background: rgba(var(--a-rgb), .2); color: #fff; }
.ssm-li .tog { flex: none; width: 34px; height: 15px; border-radius: 2px; font-size: 9px; letter-spacing: .04em; display: grid; place-items: center; border: 1px solid #2c2936; color: #8a8696; }
.ssm-li .tog.keep { color: #4ade80; border-color: rgba(74, 222, 128, .45); }
.ssm-li .tog.sell { color: #fbbf24; border-color: rgba(251, 191, 36, .45); }
.ssm-li .ok { color: #4ade80; }
.ssm-li .no { color: #f87171; }
.ssm-empty { padding: 6px; color: #5d596c; font-size: 10px; }
.ssm-kv { display: flex; justify-content: space-between; gap: 8px; min-height: 18px; align-items: center; }
.ssm-kv > span:first-child { color: #8f8b9e; }
.ssm-kv > span:last-child { color: #fff; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ssm-kv .acc { color: var(--a) !important; }
.ssm-kv .good { color: #4ade80 !important; }
.ssm-kv .bad { color: #f87171 !important; }
.ssm-kv .warn { color: #fbbf24 !important; }
.ssm-meter { position: relative; height: 13px; margin: 3px 0 4px; border-radius: 3px; background: #15131b; border: 1px solid #23202b; overflow: hidden; }
.ssm-meter > i { position: absolute; left: 0; top: 0; bottom: 0; }
.ssm-meter > b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 5px; font-weight: 400; font-size: 9.5px; color: #fff; text-shadow: 0 1px 1px #000; }
.ssm-meter.hp > i { background: linear-gradient(90deg, #991b1b, #ef4444); }
.ssm-meter.mp > i { background: linear-gradient(90deg, #1e40af, #3b82f6); }
.ssm-meter.sp > i { background: linear-gradient(90deg, #854d0e, #eab308); }
.ssm-meter.ac > i { background: linear-gradient(90deg, var(--a), var(--a2)); }
.ssm-meter.en > i { background: linear-gradient(90deg, #7f1d1d, #dc2626); }
.ssm-swatches { display: flex; flex-wrap: wrap; gap: 5px; padding: 3px 0 6px; }
.ssm-swatches button { width: 22px; height: 22px; border-radius: 4px; background: linear-gradient(135deg, var(--c1), var(--c2)); border: 1.5px solid transparent; }
.ssm-swatches button.on { border-color: #fff; box-shadow: 0 0 10px rgba(var(--a-rgb), .7); }
.ssm-bags { display: flex; gap: 4px; padding: 2px 0 6px; }
.ssm-bags button { flex: 1; height: 21px; border-radius: 3px; border: 1px solid #2c2936; background: #16141d; color: #8a8696; }
.ssm-bags button.on { color: #fff; border-color: rgba(var(--a-rgb), .6); background: rgba(var(--a-rgb), .22); }
.ssm-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.ssm-table td, .ssm-table th { padding: 3px 4px; border-bottom: 1px solid #17151d; text-align: left; white-space: nowrap; }
.ssm-table th { color: #6f6b80; font-weight: 400; }
.ssm-table td { color: #c9c6d4; }
.ssm-table td.n { color: var(--a); }
.ssm-matrix { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 3px 0 5px; font-size: 9.5px; font-family: var(--ff-mono); }
.ssm-matrix span { padding: 3px 2px; text-align: center; background: #121017; border-radius: 2px; color: #bdb9cc; overflow: hidden; }
.ssm-foot { height: 22px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 10px; border-top: 1px solid #1d1b24; background: #0a090e; color: #66627a; font-size: 10px; white-space: nowrap; overflow: hidden; }
.ssm-foot .dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: #4b475a; }
.ssm-foot .dot.on { background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.ssm-foot b { color: #d7d4e1; font-weight: 400; }
.ssm-foot span:last-child { margin-left: auto; }
.ssm-pop { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(5, 4, 9, .6); border-radius: 7px; }
.ssm-pop > div { width: 240px; padding: 14px; border-radius: 5px; background: #0f0e15; border: 1px solid #2f2b38; box-shadow: 0 20px 50px -10px #000; }
.ssm-pop p { color: #e8e5f0; margin-bottom: 4px; font-weight: 700; }
.ssm-pop .ssm-note { margin-bottom: 8px; }

/* docked (below the viewport) on narrow screens */
.demo-menu-dock .ssm { position: relative; left: auto !important; top: auto !important; width: 100%; height: 470px; border-radius: 0 0 23px 23px; border-width: 1px 0 0; box-shadow: none; }
.demo-menu-dock .ssm-head { cursor: default; }
.demo-menu-dock .ssm.hidden { display: none; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1180px) {
  .hero-visual { height: 520px; transform: scale(.9); transform-origin: 30% 50%; }
  .hk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; }
}
@media (max-width: 1100px) {
  .demo-shell.docked .demo-menu-dock { display: block; }
  .demo-shell.docked .demo-view { border-radius: 23px 23px 0 0; }
}
@media (max-width: 1024px) {
  .hero { min-height: 0; padding-top: 118px; }
  .hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero-sub { margin: 0 auto; }
  .hero-ctas, .hero-keys { justify-content: center; }
  .keys-hint { width: 100%; justify-content: center; margin: 4px 0 0; }
  .hero-visual { height: 500px; transform: none; max-width: 620px; width: 100%; margin: 26px auto 0; }
  .auto-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .auto-diagram { max-width: 560px; margin: 0 auto; width: 100%; }
  .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .faq-grid .sec-head { position: static; margin-bottom: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
  .start-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .start-req { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}
@media (max-width: 960px) {
  .nav-links, .nav-right > .btn { display: none; }
  .nav-burger { display: flex; }
  .lens-view { height: auto; min-height: 0; display: flex; flex-direction: column; }
  .lens-view > canvas { position: absolute; top: auto; bottom: 0; height: 440px; }
  .lens-copy { position: relative; width: 100%; padding: 34px 28px 30px; background: linear-gradient(180deg, rgba(5, 4, 10, .97) 70%, rgba(5, 4, 10, .6)); }
  .lens-view::after { content: ""; display: block; height: 440px; flex: none; }
  .lens-ring span { display: none; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .section { padding: 88px 0; }
  .sec-head { margin-bottom: 36px; }
  .sec-head p { font-size: 16.5px; }
  .hero-title { font-size: clamp(38px, 11vw, 56px); }
  .hero-sub { font-size: 16.5px; }
  .hero-visual { height: 430px; }
  .hm { width: 400px; height: 300px; }
  .hm-pane { grid-template-columns: 1fr; }
  .hm-pane .hm-group:nth-child(2) { display: none; }
  .hl-menu { left: 50%; top: 13%; margin-left: -200px; }
  .hl-wm { left: 2%; }
  .hl-radar { right: -2%; top: 1%; }
  .radar-card { width: 116px; height: 116px; }
  .radar-card canvas { width: 110px; height: 110px; }
  .hl-target { left: -2%; top: 66%; }
  .hl-card { left: auto; right: 0; bottom: 0; }
  .hl-toast { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
  .hstat { padding: 18px; }
  .hstat:nth-child(3)::before { display: none; }
  .hstat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hk-grid { grid-template-columns: 1fr; }
  .marquee { height: 124px; }
  .mq-track { font-size: 16px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bc.w2 { grid-column: span 2; }
  .start-steps { grid-template-columns: 1fr; }
  .start-req .ticks { grid-template-columns: 1fr; }
  .bc.h2 { grid-row: span 1; }
  .demo-bar { justify-content: center; }
  .dkey { height: 40px; padding-right: 12px; font-size: 12.5px; }
  .dkey span { display: none; }
  .dkey > i { margin-right: 2px; }
  .demo-view { aspect-ratio: 4 / 3; }
  .demo-hints { font-size: 12.5px; gap: 8px 16px; }
  .term-body { height: 240px; font-size: 11.5px; }
  .cta { padding: 80px 20px; border-radius: 24px; }
  .cta-keys { display: none; }
  .faq-q { font-size: 16px; }
  .faq-a p { padding-right: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .f-bottom { flex-direction: column; gap: 10px; }
  .f-bottom span:last-child { text-align: left; }
  .theme-switch { display: none; }
}
@media (max-width: 520px) {
  .hero-visual { height: 380px; }
  .hm { width: 330px; height: 270px; }
  .hm-tabs { width: 42px; }
  .hl-menu { margin-left: -165px; }
  .wm { font-size: 10px; gap: 6px; padding: 7px 8px; }
  .wm > span:nth-child(n+8) { display: none; }
  .wm-sep:nth-of-type(n+4) { display: none; }
  .esp-card { padding: 8px 12px 8px 8px; }
  .esp-box { width: 40px; height: 50px; }
  .pcard { width: 200px; }
  .hero-keys .keycap { min-width: 60px; height: 56px; }
  .bento { grid-template-columns: 1fr; }
  .bc.w2 { grid-column: span 1; }
  .v-skills { grid-template-columns: repeat(5, 1fr); }
  .v-inv { grid-template-columns: repeat(8, 1fr); }
  .lens-view > canvas { height: 380px; }
  .lens-view::after { height: 380px; }
  .demo-menu-dock .ssm { height: 500px; }
  .ssm-pane { grid-template-columns: 1fr; }
}


/* Phone layouts: compact sections and comfortable touch controls. */
@media (max-width: 760px) {
  html { scroll-padding-top: 82px; }
  body::after { display: none; }
  .nav-inner { height: 64px; }
  .nav-burger { width: 44px; height: 44px; }
  .hero { min-height: auto; padding: 100px 0 32px; }
  .hero-title { font-size: clamp(31px, 8.8vw, 48px); line-height: 1.12; margin: 18px 0 0; }
  .hero-sub { font-size: 16px; line-height: 1.75; margin-top: 20px; }
  .hero-ctas { width: 100%; margin-top: 24px; gap: 10px; }
  .hero-ctas .btn { min-height: 50px; height: auto; padding: 14px 18px; }
  .hero-keys { margin-top: 24px; }
  .hero-visual { height: 330px; margin-top: 18px; }
  .hero-stats { margin-top: 24px; }
  .hstat { padding: 16px 12px; }
  .scroll-cue { display: none; }
  .section { padding: 64px 0; }
  .sec-head { margin-bottom: 28px; }
  .sec-head h2 { font-size: clamp(28px, 7.8vw, 40px); line-height: 1.18; }
  .sec-head p { font-size: 16px; line-height: 1.75; }
  .hk-card { padding: 24px; }
  .spec-tools { align-items: stretch; }
  .spec-chips { max-width: 100%; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; overscroll-behavior-inline: contain; padding: 4px 3px 12px; scrollbar-width: thin; scrollbar-color: var(--a) transparent; }
  .spec-chips .chip-btn { flex: none; min-height: 44px; }
  .spec-search { width: 100%; }
  .spec-search kbd { display: none; }
  .esp-mode-switch button { min-height: 44px; }
  .cta-sec { padding-bottom: 64px; }
  .cta { padding: 48px 20px; }
  .cta h2 { font-size: clamp(28px, 8vw, 40px); }
  .cta p { font-size: 16px; }
  .cta-btns .btn { width: 100%; min-height: 48px; }
  .footer { padding-top: 48px; }
  .ht-kicker { margin-bottom: 14px; font-size: 11px; letter-spacing: .14em; }
  .start-step { padding: 22px 20px 24px; }
  .start-req { padding: 22px 20px; }
  .start-btns, .start-btns .btn { width: 100%; }
  .f-langs { margin-top: 32px; }
  .f-langs h3 { width: 100%; margin-bottom: 6px; }
  .footer-grid a { display: inline-flex; align-items: center; min-height: 44px; }
  .f-col { display: flex; flex-wrap: wrap; align-content: flex-start; column-gap: 22px; }
  .f-col h3 { width: 100%; }
  .footer-grid { gap: 24px; }
}
@media (max-width: 520px) {
  .hero-ctas { display: grid; grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  .hero-keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .hero-keys .keycap { min-width: 0; width: 100%; }
  .keys-hint { grid-column: 1 / -1; justify-content: center; margin: 4px 0 0; }
  .pill { font-size: 10px; gap: 7px; }
  .hero-visual { height: 310px; }
  .mobile-nav { padding: 18px; }
  .mn-header h2 { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ht-in { transform: none; }
}
