/* PJProject landing page — themeable */
:root,
[data-theme="forest"] {
  --radius: 16px;
  --wrap: 1180px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "Consolas", "SFMono-Regular", Menlo, monospace;
  --bg: #061711;
  --bg-soft: #081d16;
  --bg-deep: #04110c;
  --header-bg: rgba(6, 23, 17, 0.72);
  --header-bg-solid: rgba(5, 19, 14, 0.92);
  --panel: #0b241b;
  --window-bg: #0a1f17;
  --bar-bg: rgba(255, 255, 255, 0.025);
  --float-bg: rgba(8, 29, 22, 0.92);
  --line: rgba(159, 213, 187, 0.14);
  --line-strong: rgba(159, 213, 187, 0.28);
  --grid-line: rgba(159, 213, 187, 0.055);
  --text: #eaf4ee;
  --text-2: #c6ded1;
  --muted: #8fb6a3;
  --accent: #2ea06a;
  --accent-2: #7ee0aa;
  --accent-ink: #04110c;
  --accent-soft: rgba(46, 160, 106, 0.1);
  --accent-hover: rgba(46, 160, 106, 0.2);
  --accent-border: rgba(126, 224, 170, 0.28);
  --accent-border-strong: rgba(126, 224, 170, 0.4);
  --primary-bg: linear-gradient(135deg, rgba(46, 160, 106, 0.2), rgba(46, 160, 106, 0.05));
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  --card-bg-hover: linear-gradient(180deg, rgba(46, 160, 106, 0.08), rgba(255, 255, 255, 0.012));
  --blue: #5d9cec;
  --red: #d85a4e;
  --amber: #e6b450;
  --glow: rgba(46, 160, 106, 0.2);
  --glow-2: rgba(93, 156, 236, 0.09);
  --shadow: rgba(0, 0, 0, 0.55);
  --shadow-soft: rgba(0, 0, 0, 0.35);
  --code-bg: #04110c;
  --terminal-bg: #071b14;
  --code-text: #d9ede1;
  --syn-k: #7ee0aa;
  --syn-t: #9fd9bb;
  --syn-f: #5d9cec;
  --syn-c: #57826b;
  --syn-n: #e6b450;
  --lightbox-bg: rgba(3, 12, 8, 0.94);
  --dot-idle: #2a4b3c;
  --mark-bg: #123a2a;
  --mark-a: #7ee0aa;
  --mark-b: #5d9cec;
  --mark-c: #2ea06a;
}

[data-theme="light"] {
  --bg: #f6f7f2;
  --bg-soft: #edf1e9;
  --bg-deep: #e6ebe2;
  --header-bg: rgba(246, 247, 242, 0.8);
  --header-bg-solid: rgba(246, 247, 242, 0.95);
  --panel: #ffffff;
  --window-bg: #ffffff;
  --bar-bg: #f2f5ee;
  --float-bg: rgba(255, 255, 255, 0.96);
  --line: rgba(18, 36, 28, 0.12);
  --line-strong: rgba(18, 36, 28, 0.22);
  --grid-line: rgba(18, 36, 28, 0.05);
  --text: #12241c;
  --text-2: #2f4a3c;
  --muted: #5b7265;
  --accent: #187a4f;
  --accent-2: #146b45;
  --accent-ink: #ffffff;
  --accent-soft: rgba(20, 122, 77, 0.08);
  --accent-hover: rgba(20, 122, 77, 0.16);
  --accent-border: rgba(20, 122, 77, 0.24);
  --accent-border-strong: rgba(20, 122, 77, 0.45);
  --primary-bg: linear-gradient(135deg, #ffffff, #eef5ee);
  --card-bg: linear-gradient(180deg, #ffffff, #fbfcf8);
  --card-bg-hover: linear-gradient(180deg, #ffffff, #f3f8f2);
  --blue: #2563c9;
  --red: #c04336;
  --amber: #a86a12;
  --glow: rgba(20, 122, 77, 0.14);
  --glow-2: rgba(37, 99, 201, 0.06);
  --shadow: rgba(18, 36, 28, 0.16);
  --shadow-soft: rgba(18, 36, 28, 0.1);
  --code-bg: #0d1f18;
  --terminal-bg: #0d1f18;
  --code-text: #d9ede1;
  --syn-k: #7ee0aa;
  --syn-t: #9fd9bb;
  --syn-f: #7fb2ff;
  --syn-c: #6f9a82;
  --syn-n: #e6b450;
  --lightbox-bg: rgba(10, 20, 16, 0.9);
  --dot-idle: #c9d6cc;
  --mark-bg: #0f2a1f;
  --mark-a: #7ee0aa;
  --mark-b: #5d9cec;
  --mark-c: #2ea06a;
}

[data-theme="navy"] {
  --bg: #050b18;
  --bg-soft: #071226;
  --bg-deep: #030814;
  --header-bg: rgba(5, 11, 24, 0.75);
  --header-bg-solid: rgba(4, 9, 20, 0.94);
  --panel: #0a1730;
  --window-bg: #0a1730;
  --bar-bg: rgba(255, 255, 255, 0.03);
  --float-bg: rgba(8, 18, 38, 0.94);
  --line: rgba(160, 190, 255, 0.14);
  --line-strong: rgba(160, 190, 255, 0.3);
  --grid-line: rgba(160, 190, 255, 0.06);
  --text: #eaf1ff;
  --text-2: #c3d2ee;
  --muted: #8ba0c4;
  --accent: #3b82f6;
  --accent-2: #8ab8ff;
  --accent-ink: #04101f;
  --accent-soft: rgba(59, 130, 246, 0.12);
  --accent-hover: rgba(59, 130, 246, 0.24);
  --accent-border: rgba(138, 184, 255, 0.28);
  --accent-border-strong: rgba(138, 184, 255, 0.45);
  --primary-bg: linear-gradient(135deg, rgba(59, 130, 246, 0.24), rgba(59, 130, 246, 0.05));
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  --card-bg-hover: linear-gradient(180deg, rgba(59, 130, 246, 0.12), rgba(255, 255, 255, 0.012));
  --blue: #60a5fa;
  --red: #f87171;
  --amber: #fbbf24;
  --glow: rgba(59, 130, 246, 0.22);
  --glow-2: rgba(34, 211, 238, 0.1);
  --shadow: rgba(0, 0, 0, 0.6);
  --shadow-soft: rgba(0, 0, 0, 0.4);
  --code-bg: #040b16;
  --terminal-bg: #061020;
  --code-text: #dbe7ff;
  --syn-k: #8ab8ff;
  --syn-t: #b9cdf1;
  --syn-f: #60a5fa;
  --syn-c: #5c7196;
  --syn-n: #fbbf24;
  --lightbox-bg: rgba(2, 6, 14, 0.95);
  --dot-idle: #23395c;
  --mark-bg: #0e1f3d;
  --mark-a: #8ab8ff;
  --mark-b: #60a5fa;
  --mark-c: #3b82f6;
}

[data-theme="sand"] {
  --bg: #f5f0e6;
  --bg-soft: #efe7d8;
  --bg-deep: #e8dfcd;
  --header-bg: rgba(245, 240, 230, 0.82);
  --header-bg-solid: rgba(245, 240, 230, 0.96);
  --panel: #fffaf2;
  --window-bg: #fffaf2;
  --bar-bg: #f7f1e5;
  --float-bg: rgba(255, 250, 242, 0.96);
  --line: rgba(58, 42, 30, 0.14);
  --line-strong: rgba(58, 42, 30, 0.26);
  --grid-line: rgba(58, 42, 30, 0.055);
  --text: #2a1f16;
  --text-2: #4a3a2c;
  --muted: #7a6653;
  --accent: #b4552d;
  --accent-2: #9c4522;
  --accent-ink: #fff8f2;
  --accent-soft: rgba(180, 85, 45, 0.08);
  --accent-hover: rgba(180, 85, 45, 0.16);
  --accent-border: rgba(180, 85, 45, 0.26);
  --accent-border-strong: rgba(180, 85, 45, 0.48);
  --primary-bg: linear-gradient(135deg, #fffaf2, #f6eadb);
  --card-bg: linear-gradient(180deg, #fffaf3, #fbf4e7);
  --card-bg-hover: linear-gradient(180deg, #fffaf3, #f7ecdc);
  --blue: #3f6f8f;
  --red: #a83b2c;
  --amber: #a86a12;
  --glow: rgba(180, 85, 45, 0.13);
  --glow-2: rgba(63, 111, 143, 0.07);
  --shadow: rgba(58, 42, 30, 0.18);
  --shadow-soft: rgba(58, 42, 30, 0.1);
  --code-bg: #241a12;
  --terminal-bg: #2b2017;
  --code-text: #f3e6d8;
  --syn-k: #f0b27a;
  --syn-t: #e8c9a8;
  --syn-f: #8fb8d8;
  --syn-c: #8a6a52;
  --syn-n: #e6b450;
  --lightbox-bg: rgba(30, 22, 16, 0.92);
  --dot-idle: #d8cbb8;
  --mark-bg: #3a2a1e;
  --mark-a: #e8c9a8;
  --mark-b: #8fb8d8;
  --mark-c: #b4552d;
}

[data-theme="mono"] {
  --bg: #0a0a0a;
  --bg-soft: #101010;
  --bg-deep: #050505;
  --header-bg: rgba(10, 10, 10, 0.76);
  --header-bg-solid: rgba(6, 6, 6, 0.95);
  --panel: #141414;
  --window-bg: #141414;
  --bar-bg: rgba(255, 255, 255, 0.04);
  --float-bg: rgba(16, 16, 16, 0.95);
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.28);
  --grid-line: rgba(255, 255, 255, 0.055);
  --text: #f5f5f5;
  --text-2: #d4d4d4;
  --muted: #9a9a9a;
  --accent: #c8ff3d;
  --accent-2: #d6ff6e;
  --accent-ink: #0a0a0a;
  --accent-soft: rgba(200, 255, 61, 0.08);
  --accent-hover: rgba(200, 255, 61, 0.16);
  --accent-border: rgba(200, 255, 61, 0.3);
  --accent-border-strong: rgba(200, 255, 61, 0.5);
  --primary-bg: linear-gradient(135deg, rgba(200, 255, 61, 0.18), rgba(200, 255, 61, 0.04));
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  --card-bg-hover: linear-gradient(180deg, rgba(200, 255, 61, 0.1), rgba(255, 255, 255, 0.012));
  --blue: #8ab4ff;
  --red: #ff6b5e;
  --amber: #ffd166;
  --glow: rgba(200, 255, 61, 0.12);
  --glow-2: rgba(255, 255, 255, 0.04);
  --shadow: rgba(0, 0, 0, 0.65);
  --shadow-soft: rgba(0, 0, 0, 0.45);
  --code-bg: #0a0a0a;
  --terminal-bg: #0f0f0f;
  --code-text: #f0f0f0;
  --syn-k: #d6ff6e;
  --syn-t: #e8e8e8;
  --syn-f: #8ab4ff;
  --syn-c: #6f6f6f;
  --syn-n: #ffd166;
  --lightbox-bg: rgba(0, 0, 0, 0.94);
  --dot-idle: #333333;
  --mark-bg: #1a1a1a;
  --mark-a: #d6ff6e;
  --mark-b: #e8e8e8;
  --mark-c: #c8ff3d;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

::selection { background: var(--accent-hover); color: var(--text); }

img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.12;
}
p { margin: 0; }
button { font: inherit; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent-2);
  color: var(--accent-ink);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: 68px;
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.header.is-scrolled { background: var(--header-bg-solid); border-bottom-color: var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand__mark { width: 30px; height: 30px; display: inline-flex; }
.brand__mark svg { width: 100%; height: 100%; display: block; }
.brand__mark .mk-bg { fill: var(--mark-bg); }
.brand__mark .mk-a { fill: var(--mark-a); }
.brand__mark .mk-b { fill: var(--mark-b); }
.brand__mark .mk-c { fill: var(--mark-c); }
.brand__name { font-family: var(--display); font-weight: 650; font-size: 17px; letter-spacing: -0.02em; }
.brand__version {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--accent-2);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  padding: 2px 7px;
  background: var(--accent-soft);
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 28px; font-size: 13.5px; color: var(--text-2); }
.nav a { position: relative; padding: 4px 0; transition: color 0.2s ease; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.menu {
  display: none;
  margin-left: auto;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.menu span { display: block; width: 16px; height: 1.5px; background: var(--text); transition: transform 0.25s ease, opacity 0.2s ease; }
.menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 148px 0 0; overflow: hidden; }
.hero__glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 900px; height: 900px;
  background: radial-gradient(circle, var(--glow), transparent 62%);
  pointer-events: none;
}
.hero__glow::after {
  content: "";
  position: absolute;
  inset: 140px auto auto -520px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, var(--glow-2), transparent 65%);
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 64px;
  align-items: center;
  padding-bottom: 56px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.eyebrow__dash { display: inline-block; width: 24px; height: 1px; background: var(--accent); }

.hero h1 {
  font-size: clamp(44px, 5.4vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
}
.hero h1 em { font-style: normal; color: var(--accent-2); }
.lede { max-width: 58ch; font-size: 17.5px; line-height: 1.65; color: var(--muted); }
.lede strong { color: var(--text); font-weight: 600; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent-2); color: var(--accent-ink); box-shadow: 0 10px 30px var(--accent-soft); }
.btn--primary:hover { filter: brightness(1.06); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--text); background: var(--accent-soft); }
.btn--ghost:hover { border-color: var(--accent-2); background: var(--accent-hover); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}
.stats dt { font-family: var(--display); font-size: 26px; font-weight: 650; letter-spacing: -0.03em; color: var(--text); }
.stats dd { margin: 2px 0 0; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.hero__visual { position: relative; }
.window {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--window-bg);
  overflow: hidden;
  box-shadow: 0 40px 100px var(--shadow), 0 0 0 1px var(--bar-bg) inset;
}
.window__bar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bar-bg);
}
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--dot-idle); display: block; }
.dots i:nth-child(1) { background: rgba(216, 90, 78, 0.85); }
.dots i:nth-child(2) { background: rgba(230, 180, 80, 0.85); }
.dots i:nth-child(3) { background: rgba(80, 180, 120, 0.85); }
.window__title {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.window img { display: block; width: 100%; height: auto; }

.float {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--float-bg);
  border: 1px solid var(--line-strong);
  box-shadow: 0 16px 40px var(--shadow-soft);
  backdrop-filter: blur(8px);
}
.float__k { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.float__v { font-size: 13px; font-weight: 600; color: var(--text); }
.float__v b { color: var(--red); font-weight: 650; }
.float--a { top: -18px; left: -26px; }
.float--b { right: -22px; bottom: 74px; }
.float--c { left: 28px; bottom: -18px; }

.marquee-wrap { position: relative; padding-top: 8px; padding-bottom: 26px; border-top: 1px solid var(--line); }
.marquee {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding-top: 22px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.marquee span { position: relative; }
.marquee span + span::before {
  content: "";
  position: absolute;
  left: -15px; top: 50%;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--accent-border-strong);
}

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(76px, 9vw, 122px) 0; border-top: 1px solid var(--line); }
.section--demo { background: var(--bg-soft); }
.section--tech { background: var(--bg-deep); }
.section--interop { background: var(--bg-soft); }
.section--limits { padding-top: clamp(60px, 7vw, 86px); }

.section__head { max-width: 760px; margin-bottom: 52px; }
.section__head--small { margin-bottom: 36px; }
.section__head h2, .demo h2, .tech h2, .interop h2 {
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
}
.section__lede { color: var(--muted); font-size: 16.5px; line-height: 1.7; max-width: 68ch; }

/* ---------- Feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative;
  padding: 28px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent-border-strong); background: var(--card-bg-hover); }
.card__icon {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent-2);
}
.card__icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 20px 0 10px; font-size: 19px; letter-spacing: -0.02em; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.68; }
.ticks { list-style: none; margin: 16px 0 0; padding: 0; }
.ticks li { position: relative; padding-left: 18px; margin-top: 7px; font-size: 12.5px; color: var(--text-2); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-2);
}

/* ---------- Demo ---------- */
.demo { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.demo__copy h2 { margin-bottom: 18px; }
.checklist { list-style: none; margin: 28px 0 0; padding: 0; }
.checklist li {
  position: relative;
  padding: 11px 0 11px 30px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-2);
}
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist li span { font-family: var(--mono); font-size: 11.5px; color: var(--accent-2); margin-right: 8px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px; top: 19px;
  width: 12px; height: 6px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}
.demo__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 26px; }
.textlink { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--accent-2); }
.textlink svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.textlink:hover { text-decoration: underline; text-underline-offset: 4px; }
.demo__meta { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }

.player {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px var(--shadow-soft);
}
.player video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.player__play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  background: radial-gradient(ellipse at center, rgba(4, 10, 20, 0.18), rgba(4, 10, 20, 0.82));
  color: #fff;
  cursor: pointer;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.player__play-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--accent-2);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 40px var(--accent-soft);
  transition: transform 0.2s ease;
}
.player__play-icon svg {
  width: 26px;
  height: 26px;
  margin-left: 4px;
  color: var(--accent-ink);
}
.player__play:hover .player__play-icon { transform: scale(1.06); }
.player__play-label { font-size: 12.5px; letter-spacing: 0.04em; color: var(--text-2); }
.player.is-playing .player__play { opacity: 0; visibility: hidden; }
.player__caption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  background: var(--bar-bg);
}

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter:hover { color: var(--text); border-color: var(--line-strong); }
.filter.is-active { background: var(--accent-2); border-color: var(--accent-2); color: var(--accent-ink); font-weight: 600; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shot { margin: 0; }
.shot[hidden] { display: none; }
.shot button {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  background: var(--window-bg);
  cursor: zoom-in;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.shot button:hover { border-color: var(--accent-border-strong); transform: translateY(-2px); }
.shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.5s ease; }
.shot button:hover img { transform: scale(1.02); }
.shot figcaption { padding: 14px 4px 0; }
.shot figcaption span {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 4px;
}
.shot figcaption strong { display: block; font-size: 14px; font-weight: 600; }
.shot figcaption em { display: block; font-style: normal; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- Engineering ---------- */
.tech { display: grid; grid-template-columns: 0.98fr 1.02fr; gap: 56px; align-items: start; }
.tech__copy h2 { margin-bottom: 18px; }
.speclist { list-style: none; margin: 26px 0 0; padding: 0; }
.speclist li { padding: 13px 0; border-top: 1px solid var(--line); }
.speclist li:last-child { border-bottom: 1px solid var(--line); }
.speclist__k { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); }
.speclist__v { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.terminal { margin-top: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--terminal-bg); overflow: hidden; }
.terminal__bar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bar-bg);
}
.terminal__bar > span:nth-child(2) { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.copy {
  margin-left: auto;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.copy:hover { color: var(--accent-2); border-color: var(--accent-border-strong); }
.terminal pre {
  margin: 0;
  padding: 15px 16px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.85;
  color: var(--code-text);
  overflow-x: auto;
}
.terminal .c, .code .c { color: var(--syn-c); }

.tech__visual { display: flex; flex-direction: column; gap: 22px; }
.code {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--code-bg);
  overflow: hidden;
  box-shadow: 0 30px 70px var(--shadow-soft);
}
.code__bar {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bar-bg);
}
.code__bar > span:nth-child(2) { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.code__badge {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  padding: 2px 7px;
}
.code pre { margin: 0; padding: 18px 20px; overflow-x: auto; font-family: var(--mono); font-size: 12px; line-height: 1.7; }
.code code { color: var(--code-text); white-space: pre; }
.code .k { color: var(--syn-k); }
.code .t { color: var(--syn-t); }
.code .f { color: var(--syn-f); }
.code .n { color: var(--syn-n); }
.code__foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.arch { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 6px 0; }
.arch::before { content: ""; position: absolute; left: 24px; right: 24px; top: 50%; height: 1px; background: var(--line-strong); }
.arch__box { position: relative; z-index: 1; padding: 12px 12px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.arch__box--accent { border-color: var(--accent-border-strong); background: var(--accent-soft); }
.arch__box span { display: block; font-size: 11.5px; font-weight: 600; color: var(--text); }
.arch__box em { display: block; font-style: normal; font-size: 9.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }

/* ---------- Tech stack ---------- */
.section--stack { background: var(--bg-soft); }
.stackgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stackcard {
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card-bg);
}
.stackcard h3 { display: flex; align-items: center; gap: 9px; font-size: 15px; letter-spacing: -0.01em; margin-bottom: 14px; }
.stackcard h3 span { font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; color: var(--accent-2); }
.stackcard h3 em {
  margin-left: auto;
  font-style: normal;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 7px;
}
.stackrows { margin: 0; }
.stackrows > div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.stackrows > div:first-child { border-top: 0; padding-top: 0; }
.stackrows dt {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 1px;
}
.stackrows dd { margin: 0; font-size: 11.5px; line-height: 1.45; color: var(--text-2); }
.stackcard--note .stackcard__foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-strong);
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--muted);
}

.archpanel {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  margin-top: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  background: var(--code-bg);
}
.archtree {
  margin: 0;
  padding: 24px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.85;
  color: var(--code-text);
  white-space: pre;
  overflow-x: auto;
}
.tree-accent { color: var(--syn-k); }
.tree-blue { color: var(--syn-f); }
.archside {
  padding: 24px;
  border-left: 1px solid var(--line);
  background: var(--bar-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.archside__label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.archside__big {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent-2);
  margin: 8px 0 10px;
}
.archside p { font-size: 12px; line-height: 1.6; color: var(--muted); }
.archside__note { margin-top: 12px; color: var(--text-2); }

/* ---------- Industries ---------- */
.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.industry {
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card-bg);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.industry:hover { border-color: var(--accent-border-strong); transform: translateY(-2px); }
.industry > span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--accent-2); }
.industry h3 { margin: 14px 0 6px; font-size: 17px; letter-spacing: -0.02em; }
.industry p { font-size: 12.5px; line-height: 1.6; color: var(--muted); }

/* ---------- Interop ---------- */
.interop { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; }
.formats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.formats li { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card-bg); }
.format__name { font-family: var(--mono); font-size: 12.5px; color: var(--text); display: block; }
.format__io { display: inline-block; margin-top: 4px; font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-2); }
.formats em { display: block; font-style: normal; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.interop__note { grid-column: 1 / -1; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); max-width: 90ch; }

/* ---------- Limits ---------- */
.limits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.limits article { padding-left: 18px; border-left: 1px solid var(--line-strong); }
.limits h3 { font-size: 15px; margin-bottom: 8px; }
.limits p { font-size: 12.5px; line-height: 1.65; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { padding: 56px 0 22px; border-top: 1px solid var(--line); background: var(--bg-deep); }
.footer__inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; }
.footer__brand p { margin-top: 16px; max-width: 38ch; font-size: 12.5px; line-height: 1.65; color: var(--muted); }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__cols h4 {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.footer__cols a { display: block; margin: 7px 0; font-size: 12.5px; color: var(--text-2); transition: color 0.2s ease; }
.footer__cols a:hover { color: var(--accent-2); }
.footer__meta { display: block; margin: 7px 0; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--muted);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 40px;
  background: var(--lightbox-bg);
  backdrop-filter: blur(8px);
}
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: min(1400px, 92vw); text-align: center; }
.lightbox__figure img {
  display: block;
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  margin: 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 40px 100px var(--shadow);
}
.lightbox__figure figcaption { margin-top: 14px; }
.lightbox__figure strong { display: block; font-size: 16px; }
.lightbox__figure span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.lightbox__close {
  position: absolute;
  top: 18px; right: 22px;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.lightbox__nav:hover, .lightbox__close:hover { border-color: var(--accent-2); color: var(--accent-2); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-top: 128px; }
  .hero__visual { max-width: 820px; }
  .float--a { left: 12px; }
  .float--b { right: 12px; }
  .float--c { left: 24px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .demo { grid-template-columns: 1fr; gap: 36px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .tech { grid-template-columns: 1fr; gap: 40px; }
  .stackgrid { grid-template-columns: repeat(2, 1fr); }
  .archpanel { grid-template-columns: 1fr; }
  .archside { border-left: 0; border-top: 1px solid var(--line); }
  .interop { grid-template-columns: 1fr; gap: 32px; }
  .industries { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: 68px;
    left: 0; right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 28px 22px;
    background: var(--header-bg-solid);
    border-bottom: 1px solid var(--line);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { width: 100%; padding: 10px 0; font-size: 15px; }
  .nav a::after { display: none; }
  .menu { display: flex; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .hero { padding-top: 116px; }
  .hero h1 { font-size: clamp(38px, 10vw, 52px); }
  .lede { font-size: 16px; }
  .actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .float { display: none; }
  .marquee { font-size: 9px; gap: 8px 20px; }
  .cards, .gallery, .industries, .limits { grid-template-columns: 1fr; }
  .stackgrid { grid-template-columns: 1fr; }
  .archtree { padding: 18px; font-size: 10.5px; }
  .archside { padding: 18px; }
  .formats { grid-template-columns: 1fr; }
  .arch { grid-template-columns: repeat(2, 1fr); }
  .arch::before { display: none; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .section__head { margin-bottom: 34px; }
  .section { padding: 64px 0; }
  .lightbox { padding: 16px; }
  .lightbox__nav { top: auto; bottom: 18px; transform: none; }
  .lightbox__nav--prev { left: 18px; }
  .lightbox__nav--next { right: 18px; }
  .lightbox__figure { max-width: 96vw; }
  .lightbox__figure img { max-height: 68vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
