/* MSnip (麦截) — Spot-Inspired Bold Indie Mac Studio with Dual Dark & Light Themes */

/* ==================== Theme Tokens: Dark (Default) & Light ==================== */
:root,
[data-theme="dark"] {
  --bg: #070708;
  --bg-elev: #111114;
  --bg-card: #141418;
  --bg-card-2: #1b1b21;
  --ink: #f7f7f8;
  --ink-2: #a1a1aa;
  --ink-3: #71717a;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.2);

  --pill-nav-bg: rgba(18, 18, 22, 0.84);
  --pill-nav-bd: rgba(255, 255, 255, 0.14);
  --pill-nav-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);

  --orange: #ff5722;
  --orange-hover: #ff6a3d;
  --orange-ink: #110905;
  --yellow: #facc15;
  --yellow-ink: #111111;
  --mint: #34d399;
  --coral: #fb7185;
  --sky: #38bdf8;

  --mark-bg: rgba(250, 204, 21, 0.22);
  --mark-ink: #fef08a;
  --win-shadow: 0 28px 68px -18px rgba(0, 0, 0, 0.78), 0 0 0 1px rgba(255, 255, 255, 0.08);
  --kbd-bg: #23232a;
  --kbd-bd: rgba(255, 255, 255, 0.18);
  --kbd-ink: #f4f4f5;
  --term-bg: #0c0c0f;
  --table-hi: rgba(255, 87, 34, 0.11);
  --table-hi-head: rgba(255, 87, 34, 0.2);
}

[data-theme="light"] {
  --bg: #faf9f6;
  --bg-elev: #f1efe9;
  --bg-card: #ffffff;
  --bg-card-2: #f4f3ee;
  --ink: #0f0f11;
  --ink-2: #4b4b52;
  --ink-3: #787882;
  --line: rgba(15, 15, 17, 0.1);
  --line-strong: rgba(15, 15, 17, 0.18);

  --pill-nav-bg: rgba(255, 255, 255, 0.88);
  --pill-nav-bd: rgba(15, 15, 17, 0.12);
  --pill-nav-shadow: 0 12px 32px -10px rgba(15, 15, 17, 0.14);

  --orange: #ff541f;
  --orange-hover: #ea4512;
  --orange-ink: #120804;
  --yellow: #f5c518;
  --yellow-ink: #111111;
  --mint: #0f9d68;
  --coral: #e11d48;
  --sky: #0284c7;

  --mark-bg: rgba(245, 197, 24, 0.34);
  --mark-ink: #0f0f11;
  --win-shadow: 0 26px 60px -20px rgba(15, 15, 17, 0.2), 0 0 0 1px rgba(15, 15, 17, 0.08);
  --kbd-bg: #eceae3;
  --kbd-bd: rgba(15, 15, 17, 0.14);
  --kbd-ink: #0f0f11;
  --term-bg: #16161a;
  --table-hi: rgba(255, 84, 31, 0.07);
  --table-hi-head: rgba(255, 84, 31, 0.15);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: "Onest", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.62;
  overflow-x: clip;
  transition: background-color 0.25s ease, color 0.25s ease;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

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

.mono { font-family: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace; }
.nowrap { white-space: nowrap; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 300;
  padding: 9px 15px;
  background: var(--orange);
  color: var(--orange-ink);
  font-weight: 700;
  border-radius: 999px;
}
.skip-link:focus { left: 16px; }

.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.kbd {
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  height: 22px;
  border-radius: 6px;
  background: var(--kbd-bg);
  border: 1px solid var(--kbd-bd);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11.5px;
  color: var(--kbd-ink);
  vertical-align: 1px;
}

/* ==================== Floating Centered Pill Header (Spot Signature) ==================== */
.site-header {
  position: sticky;
  top: 16px;
  z-index: 120;
  padding: 0 16px;
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 6px 6px 6px 10px;
  border-radius: 999px;
  background: var(--pill-nav-bg);
  border: 1px solid var(--pill-nav-bd);
  box-shadow: var(--pill-nav-shadow);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 6px 2px 2px;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: -0.02em;
}

.nav-brand img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-links a:hover {
  color: var(--ink);
  background: rgba(127, 127, 127, 0.14);
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(127, 127, 127, 0.1);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}
.theme-btn:hover { background: rgba(127, 127, 127, 0.2); }
.theme-btn:active { transform: scale(0.96); }
.theme-btn .ic-sun { display: none; }
.theme-btn .ic-moon { display: inline-block; }
[data-theme="dark"] .theme-btn .ic-sun { display: inline-block; }
[data-theme="dark"] .theme-btn .ic-moon { display: none; }

.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--orange-ink);
  border: 0;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.12s ease;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--orange-hover); }
.nav-cta:active { transform: scale(0.97); }

/* ==================== Hero: Monumental Wordmark + Big Pill CTA + Dual Angled Windows ==================== */
.hero {
  position: relative;
  padding: 46px 0 88px;
  text-align: center;
}

.wordmark {
  margin: 0 auto;
  font-family: "Onest", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(4.6rem, 15.5vw, 11.8rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.055em;
  color: var(--ink);
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.02em;
}

.wm-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.78em;
  height: 0.78em;
  margin: 0 0.04em 0 0;
  border-radius: 0.18em;
  border: 0.085em solid var(--ink);
}

.wm-mark::after {
  content: "";
  width: 0.25em;
  height: 0.25em;
  border-radius: 0.04em;
  background: var(--orange);
  position: absolute;
  top: 0.14em;
  right: 0.14em;
}

.hero-punch {
  margin: 22px auto 0;
  font-size: clamp(1.65rem, 3.2vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.2;
}

.hero-sub {
  margin: 12px auto 0;
  max-width: 560px;
  font-size: 16px;
  color: var(--ink-2);
}

/* Giant Spot-style Orange Pill CTA */
.big-pill-cta {
  margin-top: 30px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 46px 14px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--orange-ink);
  border: 0;
  cursor: pointer;
  box-shadow: 0 16px 40px -12px rgba(255, 87, 34, 0.52);
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.16s ease, box-shadow 0.2s ease;
}

.big-pill-cta:hover {
  background: var(--orange-hover);
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 22px 48px -12px rgba(255, 87, 34, 0.62);
}
.big-pill-cta:active { transform: translateY(0) scale(0.99); }

.big-pill-main {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
}

.big-pill-sub {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.82;
}

.hero-meta-line {
  margin: 14px auto 0;
  font-size: 13px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.hero-meta-line button {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11.5px;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.hero-meta-line button:hover {
  border-color: var(--orange);
  background: rgba(255, 87, 34, 0.12);
}

/* Dual Slightly-Angled Product Windows (Spot Hero Signature!) */
.dual-stage {
  margin: 54px auto 0;
  max-width: 1060px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
  position: relative;
}

.angled-card {
  position: relative;
  text-align: left;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.angled-card.left { transform: rotate(-1.5deg); }
.angled-card.right { transform: rotate(1.5deg); }
.angled-card:hover { transform: rotate(0deg) translateY(-6px) scale(1.01); z-index: 4; }

.actor-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.actor-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 800;
  color: #111;
}

.win-shot {
  border-radius: 16px;
  background: #ffffff;
  color: #111114;
  overflow: hidden;
  box-shadow: var(--win-shadow);
  border: 1px solid rgba(127, 127, 127, 0.18);
  height: 310px;
  display: flex;
  flex-direction: column;
}

.win-shot.dark-ui {
  background: #14151a;
  color: #f4f4f5;
}

.win-bar {
  height: 30px;
  padding: 0 12px;
  background: rgba(127, 127, 127, 0.08);
  border-bottom: 1px solid rgba(127, 127, 127, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #71717a;
  flex-shrink: 0;
}

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

.hero-pin-scene {
  position: relative;
  flex: 1;
  padding: 14px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
  align-items: center;
  background: #f5f5f3;
}

.hero-pin-photo {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--orange);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.25);
  height: 224px;
}

.hero-pin-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.angled-card:hover .hero-pin-photo img { transform: scale(1.06); }

.hero-real-wrap {
  flex: 1;
  padding: 10px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  border: 0;
  width: 100%;
}
.hero-real-wrap img {
  max-height: 256px;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  transition: transform 0.35s ease;
}
.angled-card:hover .hero-real-wrap img { transform: scale(1.025); }

.stage-story {
  margin: 22px auto 0;
  font-size: 14px;
  color: var(--ink-2);
}

/* ==================== Expressive Typographic Manifesto + Real Interactive Pen Canvas ==================== */
.manifesto-sec {
  position: relative;
  padding: 96px 0 92px;
  text-align: center;
}

.manifesto-stage {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 36px 24px 68px;
  border-radius: 28px;
}

.manifesto-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 6;
  pointer-events: none;
  border-radius: 28px;
}

.manifesto-stage[data-pen="on"] .manifesto-canvas {
  pointer-events: auto;
  cursor: crosshair;
}

.manifesto-text {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.48;
  letter-spacing: -0.028em;
}

.manifesto-text .hl {
  display: inline-block;
  padding: 0 12px 2px;
  border-radius: 8px;
  background: var(--mark-bg);
  color: var(--mark-ink);
  position: relative;
}

.pen-tag {
  position: absolute;
  top: -16px;
  right: -12px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--sky);
  color: #08121b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.5;
}

.pen-dock {
  position: relative;
  z-index: 8;
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.pen-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}
.pen-btn:hover { border-color: var(--orange); }
.pen-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--orange-ink);
}

.pen-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease;
}
.pen-swatch:hover { transform: scale(1.12); }
.pen-swatch.active { border-color: var(--ink); transform: scale(1.12); }

/* ==================== Section: 3-Step How It Works (Spot 3-Card Row) ==================== */
.section { padding: 84px 0; }
.section-line { border-top: 1px solid var(--line); }

.sec-title {
  margin: 0 0 42px;
  text-align: center;
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.sec-sub {
  margin: -28px auto 44px;
  max-width: 580px;
  text-align: center;
  font-size: 15.5px;
  color: var(--ink-2);
}

.steps-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step-card {
  border-radius: 22px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 20px 20px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease;
}
.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.step-visual {
  height: 210px;
  border-radius: 14px;
  background: var(--bg-card-2);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  position: relative;
}

.step-visual img {
  max-height: 100%;
  width: auto;
  border-radius: 9px;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.step-card:hover .step-visual img { transform: scale(1.04); }

.step-card h3 {
  margin: 0;
  font-size: 18.5px;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.015em;
}

.step-card p {
  margin: -10px 0 0;
  font-size: 13.8px;
  color: var(--ink-2);
  text-align: center;
  line-height: 1.65;
}

/* ==================== Section: Interactive Feature Theater (Spot Yellow Pill Picker + Bold Framed Stage!) ==================== */
.theater-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 36px;
  align-items: center;
}

.theater-grid > *,
.bench-grid > *,
.dual-stage > * { min-width: 0; }

.theater-kicker {
  margin: 0 0 12px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--orange);
}

.spot-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.spot-pill {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}
.spot-pill:hover { color: var(--ink); border-color: var(--ink-2); }
.spot-pill.active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--yellow-ink);
  transform: scale(1.03);
}

.theater-copy {
  margin-top: 24px;
}

.theater-copy h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.theater-copy p {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.72;
}

/* Bold Colored Bezel Window Frame (Spot Signature!) */
.framed-stage {
  border-radius: 26px;
  padding: 14px;
  background: var(--stage-frame, var(--yellow));
  box-shadow: var(--win-shadow);
  transition: background-color 0.35s ease;
}

.framed-inner {
  border-radius: 16px;
  background: #ffffff;
  color: #111114;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

.f-panel {
  display: none;
  flex: 1;
  padding: 18px;
  animation: panelPop 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.f-panel.active { display: flex; flex-direction: column; justify-content: center; gap: 14px; }

@keyframes panelPop {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Inside-Stage Interactive Demos (always crisp light UI inside white macOS window!) */
.ba-box {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e4e4e7;
  user-select: none;
  touch-action: pan-y;
}

.ba-layer { display: grid; grid-template-columns: 1.05fr 0.95fr; min-height: 278px; }
.ba-photo img { width: 100%; height: 100%; object-fit: cover; }
.ba-copy { padding: 22px 18px; display: flex; flex-direction: column; justify-content: center; background: #f8f8f6; }
.ba-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--split, 64%)); z-index: 2; }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--split, 64%); width: 2px; background: var(--orange); z-index: 5; pointer-events: none; }
.ba-knob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; border: 2px solid var(--orange); color: var(--orange);
  display: grid; place-items: center; font-weight: 800; font-size: 13px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 6; }
.ba-tag { position: absolute; top: 10px; z-index: 4; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.ba-tag.l { left: 10px; background: rgba(17, 17, 20, 0.84); color: #fff; }
.ba-tag.r { right: 10px; background: var(--orange); color: var(--orange-ink); }

/* Morphing 3-photo pin/collage */
.morph-box { position: relative; height: 266px; border-radius: 12px; background: #f4f4f2; border: 1px solid #e4e4e7; overflow: hidden; }
.m-photo {
  position: absolute; margin: 0; padding: 4px; border-radius: 10px; background: #fff;
  border: 1px solid #d4d4d8; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.22);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1); overflow: hidden;
}
.m-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; transition: transform 0.4s ease; }
.m-photo:hover { z-index: 8 !important; }
.m-photo:hover img { transform: scale(1.06); }
.morph-box[data-mode="pin"] .mp-1 { left: 6%; top: 28px; width: 46%; height: 196px; transform: rotate(-4deg); z-index: 2; }
.morph-box[data-mode="pin"] .mp-2 { left: 28%; top: 18px; width: 46%; height: 204px; transform: none; z-index: 4; border-color: var(--orange); }
.morph-box[data-mode="pin"] .mp-3 { left: 50%; top: 34px; width: 44%; height: 190px; transform: rotate(4deg); z-index: 3; }
.morph-box[data-mode="row"] .mp-1 { left: 12px; top: 42px; width: calc(33.33% - 14px); height: 180px; transform: none; z-index: 3; }
.morph-box[data-mode="row"] .mp-2 { left: calc(33.33% + 4px); top: 42px; width: calc(33.33% - 8px); height: 180px; transform: none; z-index: 3; }
.morph-box[data-mode="row"] .mp-3 { left: calc(66.66% + 2px); top: 42px; width: calc(33.33% - 14px); height: 180px; transform: none; z-index: 3; }
.morph-box[data-mode="grid"] .mp-1 { left: 12px; top: 12px; width: calc(56% - 16px); height: 242px; transform: none; z-index: 3; }
.morph-box[data-mode="grid"] .mp-2 { left: calc(56% + 4px); top: 12px; width: calc(44% - 16px); height: 115px; transform: none; z-index: 3; }
.morph-box[data-mode="grid"] .mp-3 { left: calc(56% + 4px); top: 139px; width: calc(44% - 16px); height: 115px; transform: none; z-index: 3; }

.mini-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-chip {
  padding: 5px 12px; border-radius: 999px; border: 1px solid #d4d4d8;
  background: #f4f4f5; color: #3f3f46; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.mini-chip.active { background: #111114; border-color: #111114; color: #ffffff; }

/* Annotator + Redaction inside white macOS window */
.ann-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
  background: #f8f8fa;
  border: 1px solid #e4e4e7;
}
.ann-in { padding: 7px 10px; border-radius: 7px; border: 1px solid #d4d4d8; background: #fff; font-size: 12.5px; margin-top: 4px; }
.ann-svg { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.ann-svg svg { width: 100%; height: 100%; }
.stroke-draw { stroke-dasharray: 380; stroke-dashoffset: 380; animation: sDraw 0.55s ease forwards; }
@keyframes sDraw { to { stroke-dashoffset: 0; } }

.env-card {
  border-radius: 10px;
  background: #141418;
  color: #e4e4e7;
  padding: 14px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11.5px;
  line-height: 1.85;
}
.env-v { display: inline-block; padding: 0 5px; border-radius: 4px; transition: all 0.25s ease; }
.env-card[data-redacted="true"] .env-v {
  color: transparent; user-select: none;
  background-image:
    linear-gradient(45deg, #52525b 25%, transparent 25%),
    linear-gradient(-45deg, #52525b 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #3f3f46 75%),
    linear-gradient(-45deg, transparent 75%, #3f3f46 75%);
  background-size: 8px 8px;
  background-position: 0 0, 0 4px, 4px -4px, -4px 0;
  background-color: #71717a;
}

/* Scroll & Record inside stage */
.scroll-sim { display: grid; grid-template-columns: 1fr 68px; gap: 12px; }
.scroll-port { height: 224px; border-radius: 11px; border: 2px solid #111114; overflow: hidden; padding: 0 12px; background: #f8f8fa; }
.scroll-list { display: flex; flex-direction: column; gap: 8px; padding: 10px 0; animation: sFeed 8s ease-in-out infinite; }
.scroll-sim:hover .scroll-list, .scroll-sim:hover .s-loc { animation-play-state: paused; }
@keyframes sFeed { 0%, 14% { transform: translateY(0); } 48%, 62% { transform: translateY(-136px); } 88%, 100% { transform: translateY(0); } }
.s-item { padding: 10px 12px; border-radius: 8px; background: #ffffff; border: 1px solid #e4e4e7; font-size: 12.5px; }
.s-rail { position: relative; border-radius: 10px; background: #f4f4f5; border: 1px solid #e4e4e7; padding: 6px; display: flex; flex-direction: column; gap: 5px; }
.s-rail i { flex: 1; border-radius: 4px; background: #ffffff; border: 1px solid #e4e4e7; }
.s-loc { position: absolute; left: 5px; right: 5px; top: 8px; height: 54px; border-radius: 6px; border: 2px solid var(--orange); background: rgba(255, 87, 34, 0.14); animation: sLoc 8s ease-in-out infinite; }
@keyframes sLoc { 0%, 14% { transform: translateY(0); } 48%, 62% { transform: translateY(144px); } 88%, 100% { transform: translateY(0); } }

.rec-sim { border-radius: 12px; border: 1.5px dashed rgba(255, 87, 34, 0.55); background: #f8f8fa; padding: 18px; position: relative; min-height: 176px; overflow: hidden; }
.rec-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-right: 6px; animation: blink 1.3s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.rec-btn-demo { position: relative; display: inline-block; margin-top: 26px; padding: 8px 16px; border-radius: 9px; background: #111114; color: #fff; font-size: 13px; font-weight: 600; }
.rec-ring { position: absolute; top: 50%; left: 68%; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--orange); transform: translate(-50%, -50%) scale(0.4); animation: rOut 2.6s ease-out infinite; }
@keyframes rOut { 0% { transform: translate(-50%, -50%) scale(0.4); opacity: 0.95; } 60% { transform: translate(-50%, -50%) scale(3.2); opacity: 0; } 100% { opacity: 0; } }
.rec-laser { position: absolute; right: 24px; top: 52px; width: 150px; height: 48px; }
.rec-laser path { stroke-dasharray: 220; stroke-dashoffset: 220; animation: lFade 2.6s ease-in-out infinite; }
@keyframes lFade { 0% { stroke-dashoffset: 220; opacity: 0; } 18% { opacity: 1; } 50% { stroke-dashoffset: 0; opacity: 1; } 85% { stroke-dashoffset: 0; opacity: 0; } 100% { stroke-dashoffset: 220; opacity: 0; } }
.trim-track { position: relative; height: 28px; border-radius: 6px; background: repeating-linear-gradient(90deg, #e4e4e7 0 16px, #f4f4f5 16px 18px); overflow: hidden; }
.trim-sel { position: absolute; top: 0; bottom: 0; left: 16%; right: 20%; border: 2.5px solid #f59e0b; border-left-width: 7px; border-right-width: 7px; background: rgba(245, 158, 11, 0.16); }
.trim-head { position: absolute; top: 0; bottom: 0; width: 2px; background: #111114; animation: scrub 4.6s linear infinite; }
@keyframes scrub { from { left: 18%; } to { left: 78%; } }

.paste-sim { display: flex; flex-direction: column; gap: 12px; }
.paste-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.paste-dest { padding: 12px; border-radius: 10px; background: #f4f4f5; border: 1px solid #e4e4e7; }
.paste-dest-h { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; margin-bottom: 6px; }
.paste-dest-h img { width: 17px; height: 17px; }

/* ==================== Section: Real-Machine Benchmarks & Real AppKit Gallery ==================== */
.bench-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.bench-card {
  padding: 22px 20px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
}

.bench-num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 700;
  line-height: 1.1;
}
.bench-num.o { color: var(--orange); }
.bench-num.g { color: var(--mint); }
.bench-t { margin-top: 8px; font-size: 14px; font-weight: 700; }
.bench-s { margin-top: 3px; font-size: 12.5px; color: var(--ink-2); }

.bench-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 20px;
}

.bench-box {
  padding: 24px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bar-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.bar-trk { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; margin-bottom: 6px; }
.bar-f { height: 100%; border-radius: 999px; width: 0%; transition: width 1s cubic-bezier(0.22, 1, 0.36, 1); }
.bench-wrap.in-view .bar-f { width: var(--w); }
.bar-f.o { background: var(--orange); }
.bar-f.g { background: var(--mint); }
.bar-f.d { background: var(--ink-3); opacity: 0.45; }

.term-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.term-b {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-2);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11.5px;
  cursor: pointer;
}
.term-b:hover { color: var(--ink); }
.term-b.active { background: var(--orange); border-color: var(--orange); color: var(--orange-ink); font-weight: 700; }

.term-pre {
  margin: 0;
  padding: 16px;
  border-radius: 13px;
  background: var(--term-bg);
  color: #e4e4e7;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.72;
  overflow-x: auto;
  flex: 1;
}
.t-cmd { color: #fb923c; }
.t-ok { color: #4ade80; }
.t-dim { color: #8b8b96; }

.real-4 {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.real-shot {
  padding: 12px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  text-align: left;
  cursor: zoom-in;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.22s ease, border-color 0.2s ease;
}
.real-shot:hover { transform: translateY(-4px); border-color: var(--orange); }
.real-shot-img { height: 150px; border-radius: 10px; overflow: hidden; background: var(--bg-card-2); }
.real-shot-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.4s ease; }
.real-shot:hover .real-shot-img img { transform: scale(1.06); }
.real-shot strong { display: block; font-size: 13.5px; }
.real-shot span { display: block; font-size: 12px; color: var(--ink-2); margin-top: 2px; }

/* ==================== Comparison Table & Hairline FAQ (Spot Bottom Signature) ==================== */
.table-box {
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
}

.table-scroll { overflow-x: auto; max-width: 100%; }

.cmp-table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 13.5px; }
.cmp-table th, .cmp-table td { padding: 14px 12px; text-align: center; border-bottom: 1px solid var(--line); }
.cmp-table tr:last-child td { border-bottom: 0; }
.cmp-table th:first-child, .cmp-table td:first-child { text-align: left; font-weight: 600; padding-left: 20px; }
.cmp-table thead th { color: var(--ink-2); }
.cmp-table .hi { background: var(--table-hi); font-weight: 700; }
.cmp-table thead th.hi { background: var(--table-hi-head); color: var(--orange); }
.chk { color: var(--mint); font-weight: 700; }
.dash { color: var(--ink-3); opacity: 0.45; }

.faq-list { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  padding: 22px 4px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { font-size: 22px; font-weight: 400; color: var(--ink-2); transition: transform 0.2s ease, color 0.2s ease; }
.faq-item[open] .faq-plus { transform: rotate(45deg); color: var(--orange); }
.faq-body { padding: 0 4px 22px; font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.faq-body code { padding: 2px 6px; border-radius: 5px; background: var(--kbd-bg); border: 1px solid var(--kbd-bd); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12.5px; color: var(--ink); }

/* ==================== Monumental Closing CTA + Minimal Footer ==================== */
.closing {
  padding: 96px 0 88px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.closing-big {
  margin: 0 auto;
  font-size: clamp(2.5rem, 6.5vw, 5.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.closing p {
  margin: 18px auto 0;
  max-width: 580px;
  font-size: 16px;
  color: var(--ink-2);
  text-wrap: balance;
}

.brew-bar {
  margin: 26px auto 0;
  max-width: 820px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px 9px 18px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
}

.brew-cmd {
  min-width: 0;
  flex: 1;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--ink-2);
  overflow-x: auto;
  white-space: nowrap;
  text-align: left;
}

.copy-mini {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-card-2);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}
.copy-mini:hover { background: var(--orange); border-color: var(--orange); color: var(--orange-ink); }
.copy-mini.copied { background: var(--mint); border-color: var(--mint); color: #051b11; }

.site-footer {
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--ink-3);
}

.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a:hover { color: var(--ink); }

/* ==================== Modals & Toast ==================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}
.modal.open { opacity: 1; visibility: visible; }

.modal-card {
  width: 100%;
  max-width: 550px;
  background: var(--bg-card);
  color: var(--ink);
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  padding: 24px 26px;
}
.modal-card.wide { max-width: 920px; padding: 18px 20px; }

.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-head h3 { margin: 0; font-size: 18px; }
.modal-x { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; }

.dl-opt { margin-top: 14px; padding: 15px; border-radius: 16px; background: var(--bg-card-2); border: 1px solid var(--line); }
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.dl-btn { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 12px; background: var(--bg-card); border: 1px solid var(--line-strong); }
.dl-btn:hover { border-color: var(--orange); }
.dl-btn span { font-size: 12px; color: var(--ink-2); margin-top: 2px; }

.lb-img { margin-top: 14px; border-radius: 12px; background: var(--bg-elev); display: flex; justify-content: center; max-height: 76vh; overflow: hidden; }
.lb-img img { max-height: 76vh; width: auto; object-fit: contain; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(14px);
  z-index: 260;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--orange-ink);
  font-size: 13.5px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ==================== Responsive ==================== */
@media (max-width: 980px) {
  .theater-grid,
  .bench-grid { grid-template-columns: 1fr; }
  .bench-4, .real-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-3 { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .dual-stage { grid-template-columns: 1fr; gap: 22px; }
  .angled-card.left, .angled-card.right { transform: none; }
  .nav-links { display: none; }
  .ba-layer, .ann-grid, .paste-row, .scroll-sim, .dl-grid { grid-template-columns: 1fr; }
  .s-rail { display: none; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .nav-pill { padding: 5px 5px 5px 8px; gap: 5px; }
  .theme-btn .t-label { display: none; }
  .nav-cta { padding: 7px 12px; font-size: 12.5px; }
  .hero { padding: 32px 0 64px; }
  .big-pill-cta { width: 100%; padding: 15px 20px 13px; }
  .hero-pin-scene { grid-template-columns: 1fr; }
  .hero-pin-photo { height: 148px; }
  .bench-4, .real-4 { grid-template-columns: 1fr; }
  .brew-bar { border-radius: 16px; flex-direction: column; align-items: stretch; padding: 12px; }
  .faq-item summary { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .bench-wrap .bar-f { width: var(--w); }
}
