* { box-sizing: border-box; }

:root {
  color-scheme: light;
  --ink: #17243a;
  --muted: #465467;
  --blue: #1e50a2;
  --blue-hover: #173f81;
  --blue-light: #e8effb;
  --blue-panel: #d8e5f9;
  --blue-dark: #18345e;
  --blue-dark-panel: #244577;
  --blue-on-dark: #d7e6ff;
  --gray-light: #f1f4f8;
  --gray-panel: #e4e9f0;
  --paper: #fbfcfe;
  --white: #fff;
  --surface: var(--white);
  --button-fill: var(--blue);
  --button-hover: var(--blue-hover);
  --grid-rgb: 30 80 162;
  --orb: rgb(30 80 162 / 24%);
  --halo: rgb(69 131 218 / 15%);
  --scene-line: #1e50a2;
  --header-height: 4.5rem;
}

:root[data-theme="night"] {
  color-scheme: dark;
  --ink: #edf3ff;
  --muted: #b8c7db;
  --blue: #a3c6ff;
  --blue-light: #1a2c48;
  --blue-panel: #243954;
  --blue-dark: #142843;
  --blue-dark-panel: #233d60;
  --gray-light: #182435;
  --gray-panel: #28384c;
  --paper: #0f1724;
  --surface: #202e40;
  --button-fill: #2456a4;
  --button-hover: #2b62b5;
  --grid-rgb: 157 191 242;
  --orb: rgb(148 192 255 / 36%);
  --halo: rgb(106 159 237 / 21%);
  --scene-line: #a3c6ff;
}

body {
  isolation: isolate;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 "Instrument Sans", system-ui, sans-serif;
}

body::before, body::after {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 14% 23%, var(--orb) 0 2px, var(--halo) 4px, transparent 17px),
    radial-gradient(circle at 28% 72%, var(--orb) 0 3px, var(--halo) 5px, transparent 22px),
    radial-gradient(circle at 49% 39%, var(--orb) 0 2px, var(--halo) 4px, transparent 15px),
    radial-gradient(circle at 66% 83%, var(--orb) 0 3px, var(--halo) 5px, transparent 24px),
    radial-gradient(circle at 80% 30%, var(--orb) 0 2px, var(--halo) 5px, transparent 19px),
    radial-gradient(circle at 88% 60%, var(--orb) 0 2px, var(--halo) 4px, transparent 14px);
  animation: drift-lights 22s ease-in-out infinite alternate;
}

body::after {
  opacity: .65;
  animation-duration: 31s;
  animation-delay: -14s;
  animation-direction: alternate-reverse;
}

@keyframes drift-lights {
  from { transform: translate3d(-6%, 4%, 0) rotate(-8deg); }
  to { transform: translate3d(6%, -4%, 0) rotate(8deg); }
}

@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; }
  body::after { transform: translate(6%, -4%) rotate(8deg); }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .scroll-enter:not(:focus-within) { animation: scroll-enter 420ms ease-out; }

  @keyframes scroll-enter {
    from { opacity: .55; translate: 0 14px; }
    to { opacity: 1; translate: 0 0; }
  }
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
p, h1, h2, h3, dl, dd { margin: 0; }
section, .feature-section { scroll-margin-top: calc(var(--header-height) + 1rem); }
.wrap { width: min(1160px, calc(100% - 5rem)); margin-inline: auto; }

.skip {
  position: fixed;
  inset: .5rem auto auto .5rem;
  z-index: 3;
  padding: .5rem .8rem;
  background: var(--surface);
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background-color: color-mix(in srgb, var(--surface) 89%, transparent);
}

.bar {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: 1.22rem;
  font-weight: 770;
  letter-spacing: -.045em;
}

nav, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
nav a { padding: .45rem .8rem; font-size: .94rem; font-weight: 650; }
nav a:hover, nav a[aria-current] { background: var(--blue-light); color: var(--blue); }

.site-header nav { margin-inline-start: auto; }

.site-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }

.lang-switch[hidden], .theme-switch[hidden] { display: none; }

.lang-switch {
  position: relative;
  flex: 0 0 auto;
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  height: 1.85rem;
  padding: .2rem;
  border: 0;
  border-radius: 1rem;
  background: var(--blue-panel);
  color: var(--blue);
  font: inherit;
  cursor: pointer;
}

.lang-switch-thumb {
  position: absolute;
  top: .2rem;
  left: .2rem;
  width: calc(50% - .2rem);
  height: 1.45rem;
  border-radius: .85rem;
  background: var(--surface);
}

.lang-switch[aria-checked="true"] .lang-switch-thumb {
  transform: translateX(100%);
}

.lang-switch-label {
  position: relative;
  z-index: 1;
  padding-inline: .48rem;
  font-size: .76rem;
  font-weight: 780;
  letter-spacing: .03em;
  line-height: 1;
  text-align: center;
  opacity: .68;
}

.lang-switch[aria-checked="false"] .lang-en,
.lang-switch[aria-checked="true"] .lang-es {
  opacity: 1;
}

.lang-switch:focus-visible, .theme-switch:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }

.theme-switch {
  flex: 0 0 auto;
  width: 3.25rem;
  height: 1.85rem;
  padding: .2rem;
  border: 0;
  border-radius: 1rem;
  background: var(--blue-panel);
  color: var(--blue);
  cursor: pointer;
}

.theme-switch-thumb {
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: var(--surface);
  font: 700 1rem/1 system-ui, sans-serif;
}

.theme-moon, .theme-switch[aria-checked="true"] .theme-sun { display: none; }
.theme-switch[aria-checked="true"] .theme-switch-thumb { transform: translateX(1.4rem); }
.theme-switch[aria-checked="true"] .theme-moon { display: block; }

@media (prefers-reduced-motion: no-preference) {
  .lang-switch-thumb,
  .theme-switch-thumb { transition: transform 180ms ease-out; }
}

:root[data-theme="night"] .brand img,
:root[data-theme="night"] .hero-mark img {
  filter: brightness(2.5) saturate(.55);
}


.hero { background-color: color-mix(in srgb, var(--blue-light) 67%, transparent); overflow: hidden; }

.site-header, .hero {
  --grid-line: rgb(var(--grid-rgb) / 7%);
  --grid-major-line: rgb(var(--grid-rgb) / 11%);
  background-image:
    linear-gradient(to right, var(--grid-major-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-major-line) 1px, transparent 1px),
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 112px 112px, 112px 112px, 28px 28px, 28px 28px;
  background-position: left top;
}

.site-header {
  --grid-line: rgb(var(--grid-rgb) / 5%);
  --grid-major-line: rgb(var(--grid-rgb) / 8%);
}

.hero-grid, .product-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(1.75rem, 6vw, 6rem);
}
.hero-grid { min-height: 34rem; padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.hero-copy { position: relative; z-index: 1; }

.eyebrow, .product-brand > span:last-child {
  color: var(--blue);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .075em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.08; letter-spacing: -.05em; }
h1 { margin-block: .9rem 1.25rem; font-size: clamp(2.75rem, 6.5vw, 5.6rem); font-weight: 780; }
h2 { font-size: clamp(3.25rem, 7vw, 5.25rem); font-weight: 780; }
h3 { font-size: clamp(1.55rem, 3.5vw, 2.25rem); }
.lead { max-width: 47ch; font-size: clamp(1.04rem, 2vw, 1.23rem); color: var(--muted); }
.actions { gap: .65rem; margin-top: 1.65rem; }

.button {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .78rem .95rem;
  background: var(--button-fill);
  color: var(--white);
  font-size: .94rem;
  font-weight: 700;
}
.button:hover { background: var(--button-hover); }
.secondary { background: var(--surface); color: var(--blue); }
.secondary:hover { background: var(--blue-panel); }

.hero-mark {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(17rem, 35vw, 27rem);
  overflow: hidden;
  background: color-mix(in srgb, var(--blue-panel) 84%, transparent);
}
.hero-mark img { position: relative; width: min(72%, 310px); height: auto; }
.hero-mark canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-mark.has-scene img { width: clamp(80px, 29%, 145px); }

.product { padding-block: clamp(3.5rem, 8vw, 6.75rem); }
.rigxedit { background: color-mix(in srgb, var(--gray-light) 67%, transparent); }
.product-overview { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.product-brand { display: flex; align-items: center; gap: .8rem; margin-bottom: .8rem; }
.product-brand img { width: 3.5rem; height: 3.5rem; object-fit: contain; }

.product-intro .lead { margin-block: .9rem 1.35rem; }
.inline-link { color: var(--blue); font-weight: 700; }
.inline-link:hover { text-decoration: underline; text-underline-offset: .25em; }
.inline-link span { margin-inline-start: .3rem; }

.product-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: color-mix(in srgb, var(--gray-panel) 84%, transparent);
}
.product-image.has-image {
  aspect-ratio: 16 / 9;
  overflow: visible;
  background: transparent;
}
.product-image.has-image.is-portrait {
  aspect-ratio: auto;
  display: grid;
  place-items: center;
}
.product-image img { width: 100%; height: 100%; object-fit: contain; }
.product-image.has-image img {
  border-radius: 6px;
  box-shadow: 0 12px 28px rgb(15 23 36 / 18%);
}
.product-image.has-image.is-portrait img {
  width: auto;
  max-width: min(100%, 420px);
  height: auto;
}

.mcp {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: center;
  gap: clamp(1.2rem, 4vw, 3rem);
  margin-block: clamp(2rem, 5vw, 3.25rem);
  padding: clamp(1.25rem, 4vw, 2.35rem);
  background: var(--blue-dark);
  color: var(--white);
}
.mcp .eyebrow { color: var(--blue-on-dark); }
.mcp h3 { margin-block: .35rem .7rem; scroll-margin-top: calc(var(--header-height) + 1rem); }
.mcp-example { padding: clamp(1rem, 3vw, 1.5rem); background: var(--blue-dark-panel); }
.mcp-example p + p { margin-top: .45rem; font-size: 1.08rem; }

.feature-section > :first-child { margin-top: 0; }
.feature-section > * + .feature-header,
.feature-section > * + h3 { margin-top: clamp(1.75rem, 4vw, 2.5rem); }

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
  margin-top: 1.25rem;
}
.features > div { background: var(--feature-card-background, var(--gray-light)); padding: 1.15rem; }
.rigxedit .features { --feature-card-background: var(--surface); }

@media (hover: hover) and (pointer: fine) {
  .features > div:hover { background: var(--blue-light); }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .features > div { transition: transform 180ms ease-out, background-color 180ms ease-out; }
  .features > div:hover { transform: translateY(-4px); }
}

.features dt { font-weight: 740; font-size: 1.05rem; line-height: 1.3; margin-bottom: .45rem; }
.features dd { color: var(--muted); font-size: .94rem; }

.feature-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .8rem 1.2rem;
}

.feature-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
}

.feature-header .secondary {
  background: var(--blue-light);
  border: 1px solid var(--blue-panel);
}

.feature-header .secondary:hover {
  background: var(--blue-panel);
}

.audience-section {
  margin-top: 1.5rem;
  padding: clamp(1.15rem, 3vw, 1.65rem);
  background: var(--gray-light);
}

.audience-header h4 {
  margin: .35rem 0 .45rem;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.audience-lead {
  color: var(--muted);
  font-size: .96rem;
  max-width: 66ch;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  margin-top: 1.15rem;
}

.audience-card {
  padding: clamp(1rem, 2.8vw, 1.4rem);
  background: var(--surface);
}

.audience-card h5 {
  margin: .35rem 0 .9rem;
  font-size: clamp(1.1rem, 2vw, 1.32rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.audience-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .75rem;
}

.audience-list li {
  padding-top: .75rem;
  border-top: 1px solid var(--gray-panel);
  display: grid;
  gap: .2rem;
}

.audience-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.audience-list strong {
  font-size: .95rem;
  line-height: 1.3;
}

.audience-list span {
  color: var(--muted);
  font-size: .89rem;
  line-height: 1.45;
}

.camera-preview-showcase,
.presets-showcase {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  margin-top: 1.5rem;
  padding: clamp(1.25rem, 3.5vw, 2rem);
  background: var(--gray-light);
}

.presets-showcase {
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.camera-preview-copy h4,
.presets-copy h4 {
  margin: .35rem 0 .6rem;
  font-size: clamp(1.4rem, 2.8vw, 1.95rem);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.camera-preview-lead,
.presets-lead {
  color: var(--muted);
  font-size: .96rem;
  max-width: 50ch;
}

.presets-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .95rem;
}

.presets-tags span {
  padding: .28rem .65rem;
  background: var(--blue-light);
  border: 1px solid var(--blue-panel);
  color: var(--blue);
  font-size: .82rem;
  font-weight: 700;
}

.camera-preview-points,
.presets-points {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  display: grid;
  gap: .7rem;
}

.camera-preview-points li,
.presets-points li {
  padding: .8rem .95rem;
  background: var(--surface);
  display: grid;
  gap: .2rem;
}

.presets-points li {
  border-left: 3px solid var(--blue);
}

.presets-points li[data-step="1"] { border-left-color: #0284c7; }
.presets-points li[data-step="2"] { border-left-color: #059669; }
.presets-points li[data-step="3"] { border-left-color: #d97706; }
.presets-points li[data-step="4"] { border-left-color: #2563eb; }

.camera-preview-points strong,
.presets-points strong {
  font-size: .94rem;
  line-height: 1.3;
}

.camera-preview-points span,
.presets-points span {
  color: var(--muted);
  font-size: .87rem;
  line-height: 1.45;
}

.camera-preview-media,
.presets-media {
  margin: 0;
  padding: clamp(.65rem, 2vw, .95rem);
  background: var(--surface);
}

.camera-preview-media img,
.presets-media img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgb(15 23 36 / 18%);
}

.camera-demo {
  grid-column: 1 / -1;
  padding: clamp(1rem, 2.5vw, 1.45rem);
  background: var(--surface);
  display: grid;
  gap: .9rem;
}

.camera-demo-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
}

.camera-demo-head h5 {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.camera-demo-view-switch,
.camera-demo-presets {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.camera-demo-chip {
  padding: .42rem .78rem;
  border: 1px solid var(--blue-panel);
  background: var(--blue-light);
  color: var(--blue);
  font: inherit;
  font-size: .86rem;
  font-weight: 700;
  cursor: pointer;
}

.camera-demo-chip:hover {
  background: var(--blue-panel);
}

.camera-demo-chip[aria-pressed="true"] {
  background: var(--button-fill);
  border-color: var(--button-fill);
  color: var(--white);
}

.camera-demo-chip:focus-visible,
.camera-demo-controls .button:focus-visible,
.camera-demo-range:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.camera-demo-viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 25rem;
  width: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: #1d232c;
}

.camera-demo-viewport canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.camera-demo-hud {
  position: absolute;
  inset: .65rem .65rem auto .65rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  pointer-events: none;
}

.camera-demo-hud span {
  padding: .24rem .55rem;
  border-radius: 4px;
  background: rgb(15 23 36 / 74%);
  color: #edf3ff;
  font-size: .78rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.camera-demo-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
}

.camera-demo-controls .button {
  border: 0;
  font-family: inherit;
  cursor: pointer;
  min-width: 6.4rem;
  justify-content: center;
}

.camera-demo-timeline-label {
  font-size: .86rem;
  font-weight: 700;
  color: var(--muted);
}

.camera-demo-range {
  flex: 1 1 12rem;
  accent-color: var(--blue);
  cursor: pointer;
}

.camera-demo-time {
  font-size: .86rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mcp-demo {
  margin-block: clamp(2rem, 5vw, 3.25rem) 0;
  padding: clamp(1.2rem, 3.5vw, 1.9rem);
  background: var(--gray-light);
  display: grid;
  gap: 1.1rem;
}

.mcp-demo-guide {
  margin-block: 0 clamp(2rem, 5vw, 3.5rem);
}

.mcp-demo-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.mcp-demo-header h3,
.mcp-demo-header h2 {
  margin: .35rem 0 .45rem;
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  line-height: 1.14;
  letter-spacing: -.035em;
}

.mcp-demo-lead {
  color: var(--muted);
  font-size: .95rem;
  max-width: 64ch;
}

.mcp-demo-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.mcp-demo-toolbar .button {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.mcp-demo-toolbar .secondary {
  border: 1px solid var(--blue-panel);
}

.mcp-demo-steps {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.mcp-demo-compat {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .75rem;
  padding: .6rem .85rem;
  background: var(--surface);
}

.mcp-demo-compat-label {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 600;
}

.mcp-demo-compat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.mcp-demo-compat-list li {
  padding: .18rem .55rem;
  background: var(--blue-light);
  border: 1px solid var(--blue-panel);
  color: var(--blue);
  font-size: .8rem;
  font-weight: 700;
}

.mcp-demo-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 1rem;
  align-items: stretch;
}

.mcp-demo-chat-panel {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  height: 26rem;
}

.mcp-demo-chat-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .4rem .8rem;
  padding: .65rem .9rem;
  background: var(--blue-dark);
  color: var(--white);
  font-size: .84rem;
  font-weight: 700;
}

.mcp-demo-chat-bar code {
  color: var(--blue-on-dark);
}

.mcp-demo-phase {
  color: var(--blue-on-dark);
  font-variant-numeric: tabular-nums;
}

.mcp-demo-chat-log {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: .85rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.mcp-msg {
  padding: .58rem .78rem;
  font-size: .88rem;
  line-height: 1.45;
  animation: scroll-enter 260ms ease-out;
}

.mcp-msg p {
  margin: 0;
}

.mcp-msg-role {
  display: block;
  margin-bottom: .18rem;
  font-size: .74rem;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--blue);
}

.mcp-msg-user {
  align-self: flex-end;
  max-width: 90%;
  background: var(--blue-light);
  border: 1px solid var(--blue-panel);
}

.mcp-msg-tool {
  align-self: flex-start;
  padding: .35rem .65rem;
  background: var(--gray-light);
  border-left: 3px solid var(--blue);
  font-size: .8rem;
}

.mcp-msg-tool code {
  color: var(--blue);
  overflow-wrap: anywhere;
}

.mcp-msg-bot {
  align-self: flex-start;
  max-width: 92%;
  background: var(--gray-light);
  border: 1px solid var(--gray-panel);
}

.mcp-demo-form {
  display: flex;
  gap: .45rem;
  padding: .65rem;
  border-top: 1px solid var(--gray-panel);
  background: var(--gray-light);
}

.mcp-demo-form input {
  flex: 1 1 auto;
  min-width: 0;
  padding: .5rem .7rem;
  border: 1px solid var(--blue-panel);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: .88rem;
}

.mcp-demo-form input:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 1px;
}

.mcp-demo-form .button {
  border: 0;
  font-family: inherit;
  cursor: pointer;
  padding: .55rem .9rem;
}

.mcp-demo-stage {
  background: var(--surface);
  padding: .75rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  height: 26rem;
}

.mcp-demo-viewport {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #1d232c;
}

.mcp-demo-viewport canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.mcp-demo-hud {
  position: absolute;
  inset: .6rem .6rem auto .6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  pointer-events: none;
}

.mcp-demo-hud span {
  padding: .22rem .52rem;
  border-radius: 4px;
  background: rgb(15 23 36 / 74%);
  color: #edf3ff;
  font-size: .77rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.mcp-event-pill {
  opacity: .42;
  transition: opacity 150ms ease, background-color 150ms ease;
}

.mcp-event-pill.is-active {
  opacity: 1;
  background: #0ea5e9;
  color: #08121f;
}

.mcp-demo-timeline {
  padding-inline: .2rem;
}

.mcp-demo-timeline-track {
  position: relative;
  display: block;
  height: .55rem;
  border-radius: 999px;
  background: var(--gray-panel);
}

.mcp-demo-marker {
  position: absolute;
  top: -.15rem;
  left: 78%;
  width: .35rem;
  height: .85rem;
  border-radius: 2px;
  background: #0ea5e9;
  transform: translateX(-50%);
}

.mcp-demo-playhead {
  position: absolute;
  top: -.2rem;
  left: 0%;
  width: .35rem;
  height: .95rem;
  border-radius: 2px;
  background: var(--blue);
  transform: translateX(-50%);
}

.preset-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  margin-top: 1.5rem;
}

.preset-suggest {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: clamp(1.15rem, 3vw, 1.65rem);
  background: var(--gray-light);
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.preset-suggest-art {
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  min-height: 8.5rem;
}

.preset-suggest-art svg {
  width: 100%;
  height: auto;
  max-height: 11rem;
}

.preset-suggest-art .art-bg {
  fill: var(--surface);
  stroke: var(--blue-panel);
}

.preset-suggest-art .art-grid {
  stroke: rgb(var(--grid-rgb) / 11%);
  stroke-width: 1;
}

.preset-suggest-art .art-arc {
  stroke: var(--blue);
  stroke-width: 2;
  stroke-dasharray: 5 5;
  opacity: .55;
}

.preset-suggest-art .art-ghost-1,
.preset-suggest-art .art-ghost-2 {
  stroke: var(--blue);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.preset-suggest-art .art-ghost-1 { opacity: .24; }
.preset-suggest-art .art-ghost-2 { opacity: .45; }

.preset-suggest-art .art-active {
  stroke: var(--blue);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.preset-suggest-art .art-fill {
  fill: var(--blue-light);
}

.preset-suggest-art .art-joint {
  fill: var(--surface);
  stroke: var(--blue);
  stroke-width: 2;
}

.preset-suggest-art .art-bar {
  fill: var(--blue-light);
  stroke: var(--blue-panel);
}

.preset-suggest-art .art-track {
  stroke: var(--blue-panel);
  stroke-width: 2;
}

.preset-suggest-art .art-playhead {
  stroke: var(--blue);
  stroke-width: 1.5;
  opacity: .7;
}

.preset-suggest h4 {
  margin: .35rem 0 .45rem;
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.preset-suggest-copy p:last-child {
  color: var(--muted);
  font-size: .95rem;
  max-width: 48ch;
}

.preset-suggest-fields {
  display: grid;
  gap: .75rem;
  margin-top: auto;
}

.preset-suggest-fields > div:not(.preset-suggest-actions) {
  display: grid;
  gap: .35rem;
}

.preset-suggest-fields label {
  font-size: .88rem;
  font-weight: 700;
}

.field-hint {
  color: var(--muted);
  font-size: .82rem;
}

.preset-suggest-fields input:not([type="checkbox"]),
.preset-suggest-fields textarea {
  width: 100%;
  padding: .65rem .85rem;
  border: 1px solid var(--blue-panel);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: .95rem;
}

.preset-suggest-fields textarea {
  min-height: 6rem;
  resize: vertical;
}

.preset-suggest-fields input::placeholder,
.preset-suggest-fields textarea::placeholder {
  color: var(--muted);
  opacity: .75;
}

.preset-suggest-fields input:focus-visible,
.preset-suggest-fields textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.preset-suggest-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: .2rem;
}

.preset-notice {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .7rem .85rem;
  background: var(--blue-light);
  border-left: 3px solid var(--blue);
  color: var(--ink);
  font-size: .84rem;
  font-weight: 500;
  line-height: 1.45;
  cursor: pointer;
}

.preset-notice input {
  width: 1rem;
  height: 1rem;
  margin-top: .18rem;
  padding: 0;
  flex: 0 0 auto;
  accent-color: var(--blue);
}

.preset-suggest-actions .button {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.preset-suggest-actions .button:disabled {
  opacity: .65;
  cursor: wait;
}

.preset-feedback {
  margin: 0;
  padding: .62rem .85rem;
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.45;
  border-left: 3px solid var(--blue);
  background: var(--surface);
}

.preset-feedback.is-success {
  border-left-color: #16a34a;
  background: color-mix(in srgb, #16a34a 11%, var(--surface));
  color: #166534;
}

.preset-feedback.is-error {
  border-left-color: #dc2626;
  background: color-mix(in srgb, #dc2626 10%, var(--surface));
  color: #991b1b;
}

:root[data-theme="night"] .preset-feedback.is-success {
  color: #86efac;
}

:root[data-theme="night"] .preset-feedback.is-error {
  color: #fca5a5;
}

.credits-section {
  margin-top: 1.5rem;
  padding: clamp(1.15rem, 3vw, 1.65rem);
  background: var(--gray-light);
}

.credits-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .8rem 1.2rem;
}

.credits-header h4 {
  margin-top: .3rem;
  font-size: clamp(1.2rem, 2.3vw, 1.45rem);
  line-height: 1.15;
  letter-spacing: -.03em;
}

.credits-viewport {
  margin-top: 1rem;
  display: grid;
  gap: .9rem;
  min-width: 0;
}

.credits-empty-note {
  padding: .7rem .9rem;
  background: var(--surface);
  border: 1px dashed var(--blue-panel);
  color: var(--muted);
  font-size: .9rem;
}

.credits-marquee {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  padding-block: .6rem;
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}

.credits-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: .9rem;
  padding-right: .9rem;
  width: max-content;
  min-width: max-content;
  will-change: transform;
  animation: credits-scroll 28s linear infinite;
}

.credits-marquee:hover .credits-track {
  animation-play-state: paused;
}

.credit-card {
  flex: 0 0 235px;
  min-width: 235px;
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .95rem;
  background: var(--surface);
  border: 1px dashed var(--blue-panel);
  will-change: transform;
  animation: credit-float 3.6s ease-in-out infinite;
}

.credit-card:nth-child(4n + 2) { animation-delay: -.9s; }
.credit-card:nth-child(4n + 3) { animation-delay: -1.8s; }
.credit-card:nth-child(4n + 4) { animation-delay: -2.7s; }

@keyframes credits-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@keyframes credit-float {
  0%, 100% { transform: translateY(4px); }
  50% { transform: translateY(-5px); }
}

@media (prefers-reduced-motion: reduce) {
  .credits-marquee { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
  .credits-track, .credit-card { animation: none; }
}

.credit-card:not(.is-empty) {
  border-style: solid;
}

.credit-avatar {
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--blue-light);
  border: 1px dashed var(--blue-panel);
  color: var(--blue);
  opacity: .65;
}

.credit-card:not(.is-empty) .credit-avatar {
  opacity: 1;
  border-style: solid;
}

.credit-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.credit-avatar svg {
  width: 1.45rem;
  height: 1.45rem;
}

.credit-meta {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: .25rem;
}

.credit-name,
.credit-preset {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.credit-name {
  font-size: .92rem;
  color: var(--ink);
}

.credit-preset {
  font-size: .82rem;
  color: var(--muted);
}

.credit-line {
  display: block;
  height: .65rem;
  background: var(--blue-light);
}

.credit-line-name {
  width: 68%;
  background: var(--blue-panel);
  opacity: .75;
}

.credit-line-preset {
  width: 90%;
  height: .55rem;
}

.rig-guide {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  margin-top: 1.5rem;
  padding: clamp(1.25rem, 3.5vw, 2rem);
  background: var(--surface);
}

.rig-guide-copy h4 {
  margin: .35rem 0 .65rem;
  font-size: clamp(1.4rem, 2.8vw, 1.95rem);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.rig-guide-lead {
  color: var(--muted);
  font-size: .98rem;
  max-width: 54ch;
}

.rig-guide-types {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1.05rem;
}

.rig-guide-types span {
  padding: .3rem .68rem;
  background: var(--blue-light);
  border: 1px solid var(--blue-panel);
  color: var(--blue);
  font-size: .84rem;
  font-weight: 700;
}

.rig-guide-steps {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.rig-guide-steps li {
  padding: .9rem 1rem;
  background: var(--gray-light);
  display: grid;
  gap: .28rem;
  align-content: start;
}

.rig-guide-steps strong {
  font-size: .95rem;
  line-height: 1.25;
}

.rig-guide-steps span {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}

.rig-guide-media {
  margin: 0;
  padding: clamp(.75rem, 2vw, 1rem);
  background: var(--gray-light);
  display: grid;
  place-items: center;
}

.rig-guide-media img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgb(15 23 36 / 18%);
}

.rig-demo {
  margin-block: clamp(2rem, 5vw, 3.25rem) 0;
  padding: clamp(1.2rem, 3.5vw, 1.9rem);
  background: var(--surface);
  display: grid;
  gap: 1rem;
}

.rig-demo-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.rig-demo-header h3 {
  margin: .35rem 0 .45rem;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  line-height: 1.14;
  letter-spacing: -.035em;
}

.rig-demo-lead {
  color: var(--muted);
  font-size: .95rem;
  max-width: 64ch;
}

.rig-demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.rig-demo-actions .button {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.rig-demo-actions .secondary {
  border: 1px solid var(--blue-panel);
}

.rig-demo-actions .secondary[aria-pressed="true"] {
  background: var(--blue-light);
  color: var(--blue);
}

.rig-demo-stage {
  display: grid;
  gap: .75rem;
}

.rig-demo-viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 24rem;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: #1d232c;
}

.rig-demo-viewport canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.rig-demo-hud {
  position: absolute;
  inset: .6rem .6rem auto .6rem;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  pointer-events: none;
}

.rig-pill {
  padding: .24rem .58rem;
  border-radius: 4px;
  background: rgb(245 158 11 / 92%);
  color: #151922;
  font-size: .78rem;
  font-weight: 750;
}

.rig-pill.is-clean {
  background: rgb(34 197 94 / 92%);
  color: #091d11;
}

.rig-demo-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
  padding: .75rem .95rem;
  background: var(--gray-light);
}

.rig-demo-controls label {
  font-size: .88rem;
  font-weight: 700;
}

.workflow-section {
  padding-block: clamp(3.5rem, 8vw, 6.25rem);
}

.workflow-head h2 {
  margin: .35rem 0 .75rem;
  font-size: clamp(2rem, 4.5vw, 3.35rem);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .95rem;
  margin-top: 1.75rem;
}

.workflow-card {
  position: relative;
  padding: clamp(1.25rem, 3.2vw, 1.85rem);
  background: var(--gray-light);
}

.workflow-step {
  display: inline-block;
  margin-bottom: .6rem;
  padding: .2rem .5rem;
  background: var(--blue-light);
  border: 1px solid var(--blue-panel);
  color: var(--blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .05em;
}

.workflow-card h3 {
  margin: .3rem 0 .55rem;
  font-size: clamp(1.2rem, 2.3vw, 1.5rem);
}

.workflow-card p:last-child {
  color: var(--muted);
  font-size: .95rem;
}

.compare-block,
.faq-block {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.compare-head h3,
.faq-head h3 {
  margin-top: .35rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .95rem;
  margin-top: 1.2rem;
}

.compare-card {
  padding: clamp(1.15rem, 3vw, 1.65rem);
  background: var(--gray-light);
}

.compare-card.is-pivotx {
  background: var(--blue-light);
}

.compare-card h4 {
  margin: 0 0 .85rem;
  font-size: clamp(1.1rem, 2vw, 1.32rem);
  letter-spacing: -.025em;
}

.compare-card ul {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: .65rem;
  color: var(--muted);
  font-size: .94rem;
}

.compare-card.is-pivotx ul {
  color: var(--ink);
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  margin-top: 1.2rem;
}

.faq-item {
  padding: 1rem 1.15rem;
  background: var(--gray-light);
  align-self: start;
}

.faq-item summary {
  font-weight: 740;
  font-size: .98rem;
  line-height: 1.35;
  cursor: pointer;
}

.faq-item summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.faq-item p {
  margin-top: .65rem;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.5;
}

footer { background: color-mix(in srgb, var(--blue-light) 78%, transparent); }

@media (max-width: 980px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audience-grid, .camera-preview-showcase, .presets-showcase, .mcp-demo-body, .workflow-grid, .compare-grid, .faq-list, .preset-panels, .rig-guide { grid-template-columns: 1fr; }
  .mcp-demo-chat-panel { height: 22rem; }
  .mcp-demo-stage { height: 21rem; }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 2rem); }
  .hero-grid, .product-overview, .mcp { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; }
  .hero-mark { min-height: 13rem; }
  .hero-mark img { width: min(44%, 165px); }
  .product-image { aspect-ratio: 16 / 9; }
  .product-image.is-portrait { aspect-ratio: auto; }
}

@media (max-width: 800px) {
  :root { --header-height: 6.2rem; }
  .site-header .bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: center;
    gap: .35rem .5rem;
    padding-block: .5rem;
  }
  .site-header nav { grid-area: 2 / 1 / 3 / -1; margin: 0; }
  .site-controls { grid-area: 1 / 2; justify-content: flex-end; }
  nav { gap: .2rem; }
  nav a { padding-inline: .55rem; }
}

@media (max-width: 490px) {
  .site-header .brand { gap: .4rem; font-size: 1.05rem; }
  .site-header .brand img { width: 25px; height: 25px; }
  .lang-switch-label { padding-inline: .4rem; font-size: .72rem; }
  .features { grid-template-columns: 1fr; }
  footer .bar { font-size: .84rem; }
}

.mcp-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1rem;
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .25em;
}

.mcp-link:hover { color: var(--blue-on-dark); }

.guide-hero { padding-block: clamp(2.75rem, 6vw, 5rem); }
.guide-hero h1 { font-size: clamp(2.7rem, 6vw, 4.75rem); }
.guide-hero .lead { max-width: 64ch; }

.guide-content { padding-block: clamp(2rem, 5vw, 4rem); }
.guide-content h2 { font-size: clamp(1.65rem, 4vw, 2.45rem); }
.guide-content h3 { font-size: clamp(1.2rem, 3vw, 1.45rem); letter-spacing: -.025em; }
.guide-setup {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  padding: clamp(1.15rem, 4vw, 2rem);
  background: var(--blue-dark);
  color: var(--white);
}

.guide-setup p { margin-block: .75rem; max-width: 76ch; }
.guide-setup code { color: var(--blue-on-dark); }
.guide-example-intro { margin-block: .65rem 1.2rem; color: var(--muted); }
.guide-examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.guide-card { padding: clamp(1.1rem, 3vw, 1.5rem); background: var(--gray-light); }
.guide-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}
.guide-copy-btn {
  flex: 0 0 auto;
  padding: .32rem .65rem;
  border: 1px solid var(--blue-panel);
  background: var(--blue-light);
  color: var(--blue);
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
}
.guide-copy-btn:hover { background: var(--blue-panel); }
.guide-copy-btn[data-copied="true"] {
  background: var(--button-fill);
  border-color: var(--button-fill);
  color: var(--white);
}
.guide-copy-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.guide-card blockquote { margin: .65rem 0 1rem; color: var(--muted); }
.guide-methods { font-size: .88rem; }
.guide-methods span { display: block; font-weight: 700; margin-bottom: .25rem; }
.guide-methods code { display: inline-block; margin: 0 .25rem .25rem 0; padding: .1rem .35rem; background: var(--blue-light); color: var(--blue); overflow-wrap: anywhere; max-width: 100%; }

@media (max-width: 620px) {
  .guide-examples, .rig-guide-steps { grid-template-columns: 1fr; }
}
