/* Final shared skin. Loaded last on every generated HTML page. */
:root,
:root[data-theme='dark'] {
  color-scheme: dark;
  --cx-bg: #070b17;
  --cx-panel: #0e172b;
  --cx-edge: #263a58;
  --cx-text: #edf4ff;
  --cx-soft: #a8bbd4;
  --cx-cyan: #72e7ff;
  --cx-blue: #788bff;
  --cx-violet: #b4a2ff;
  --ink: var(--cx-text);
  --muted: var(--cx-soft);
  --violet: var(--cx-violet);
  --line: var(--cx-edge);
  --lavender: #1a2440;
  --ice: #112d40;
  --surface: var(--cx-bg);
  --raised: var(--cx-panel);
  --paper-secondary: var(--cx-soft);
  --paper-tertiary: #93a8c5;
  --hairline: var(--cx-edge);
  --brand: var(--cx-cyan);
  --brand-fill: #778aff;
  --brand-ink: #080e22;
  --control-border: #40597b;
  --w-cyan: var(--cx-cyan);
  --w-violet: var(--cx-violet);
  --w-indigo: var(--cx-blue);
  --studio-violet: var(--cx-violet);
  --studio-mint: var(--cx-cyan);
  --studio-peach: var(--cx-blue);
}
html {
  background: var(--cx-bg);
  scroll-padding-top: 115px;
}
body[data-cx-theme] {
  color: var(--cx-text);
  background:
    radial-gradient(ellipse 90% 720px at 55% 0, #19365a65, transparent 75%),
    radial-gradient(ellipse 50% 650px at 0 80%, #37246b25, transparent 75%), var(--cx-bg);
  overflow-x: clip;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
}
body[data-cx-theme].wow {
  --paper: var(--cx-text);
  --ink: var(--cx-text);
}
body[data-cx-theme] > .aurora {
  display: none;
}
body[data-cx-theme] ::selection {
  background: #72e7ff45;
  color: white;
}
body[data-cx-theme] :focus-visible {
  outline: 2px solid var(--cx-cyan);
  outline-offset: 5px;
}
.cx-shell {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #080e1ef5;
  border-bottom: 1px solid #72e7ff24;
  box-shadow: 0 8px 30px #0002;
}
.cx-shell-inner {
  display: flex;
  align-items: center;
  gap: 25px;
  justify-content: space-between;
  max-width: 1370px;
  margin: auto;
  padding: 18px 32px;
}
.cx-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--cx-text);
  text-decoration: none;
  font-size: 27px;
  letter-spacing: -1.4px;
  font-weight: 550;
  flex-shrink: 0;
}
.cx-logo img {
  display: block;
  border-radius: 9px;
}
.cx-logo b,
.cx-footer-wordmark b {
  color: var(--cx-cyan);
  font-weight: 450;
}
.cx-footer-wordmark {
  font-size: 24px;
  color: var(--cx-text);
  letter-spacing: -1px;
}
.cx-shell-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 12px;
}
.cx-shell-nav a,
.cx-products summary {
  color: #c5d5e9;
  text-decoration: none;
  min-height: 38px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.cx-shell-nav a:hover,
.cx-shell-nav a[aria-current],
.cx-products[open] summary {
  color: var(--cx-cyan);
}
.cx-products {
  position: relative;
}
.cx-products summary {
  cursor: pointer;
  gap: 10px;
  list-style: none;
}
.cx-products summary::-webkit-details-marker {
  display: none;
}
.cx-products summary span {
  color: var(--cx-cyan);
  font-size: 19px;
  transition: transform 0.2s;
}
.cx-products[open] summary span {
  transform: rotate(45deg);
}
.cx-product-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: -20px;
  width: 300px;
  padding: 9px;
  border: 1px solid #405c85;
  border-radius: 16px;
  background: #0d172c;
  box-shadow: 0 24px 70px #0008;
}
.cx-product-menu a {
  padding: 16px;
  display: block;
  border-radius: 9px;
}
.cx-product-menu a:hover {
  background: #72e7ff0c;
}
.cx-product-menu strong {
  font-size: 14px;
  display: block;
  color: var(--cx-text);
}
.cx-product-menu small {
  display: block;
  color: var(--cx-soft);
  font-size: 11px;
  margin-top: 5px;
}
.cx-shell-trial {
  white-space: nowrap;
  padding: 12px 18px;
  display: inline-flex;
  gap: 18px;
  align-items: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 650;
  border-radius: 8px;
  color: #08101f;
  background: linear-gradient(110deg, #9aeaff, #9ba9ff);
  border: 1px solid #b8edff;
  box-shadow: 0 0 24px #72aaff20;
}
body[data-cx-theme] .button.primary,
body[data-cx-theme] .cx-reading-actions a:first-child,
body[data-cx-theme] .cx-reading-primary,
body[data-cx-theme] .button:not(.secondary):not(.ghost),
body[data-cx-theme] .trial-form button[type='submit'],
body[data-cx-theme] #trial-form button[type='submit'],
body[data-cx-theme] #contact-form button[type='submit'] {
  color: #08101f;
  background: linear-gradient(110deg, #9aeaff, #9ba9ff);
  border: 1px solid #b8edff;
  box-shadow: 0 0 24px #72aaff20;
  border-radius: 8px;
}
body[data-cx-theme] .button.secondary {
  background: #111d32;
  border-color: #3d5375;
  color: var(--cx-text);
  border-radius: 8px;
}
body[data-cx-theme] .spectral,
body[data-cx-theme] .hero h1 em,
body[data-cx-theme] .blog-hero h1,
body[data-cx-theme] .post h1 {
  background-image: linear-gradient(110deg, #edf7ff 10%, #72e7ff 52%, #b4a2ff 95%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  filter: none;
}
body[data-cx-theme] .eyebrow,
body[data-cx-theme] .nx-pill {
  border-color: #72e7ff40;
  color: #b6eaff;
  background: #10243a;
  box-shadow: none;
}
body[data-cx-theme] .section-label,
body[data-cx-theme] .bento-kicker,
body[data-cx-theme] .studio-heading > div > span,
body[data-cx-theme] .w-eyebrow,
body[data-cx-theme] .module-meta > span:first-child {
  color: var(--cx-cyan);
}
body[data-cx-theme] .eyebrow > span {
  background: var(--cx-cyan);
  box-shadow: 0 0 12px #72e7ff60;
}
body[data-cx-theme] .landing-hero {
  background-image:
    linear-gradient(#72e7ff07 1px, transparent 1px),
    linear-gradient(90deg, #72e7ff07 1px, transparent 1px);
}
body[data-cx-theme] .landing-hero:before {
  background: radial-gradient(ellipse at 50% 70%, #34539c50, transparent 65%) !important;
}
body[data-cx-theme] .hero-facts span:before {
  background: var(--cx-cyan);
}
body[data-cx-theme] .console-window {
  border-color: #72e7ff50;
  box-shadow:
    0 0 0 8px #72e7ff08,
    0 40px 100px #0008,
    0 -20px 100px #637dff20;
}
body[data-cx-theme] .console-corner {
  border-color: #72e7ff40;
  background: #0d1b30f5;
}
body[data-cx-theme] .product-bento-card,
body[data-cx-theme] .product-bento-card.camera-bento {
  background: radial-gradient(ellipse at 100% 100%, #384a9d35, transparent 70%), #0d172a;
  border-color: #395479;
}
body[data-cx-theme] .product-bento-card.camera-bento {
  background: radial-gradient(ellipse at 100% 100%, #125e7435, transparent 70%), #0d172a;
}
body[data-cx-theme] .product-bento-card:hover {
  border-color: var(--cx-cyan);
}
body[data-cx-theme] .studio-hero,
body[data-cx-theme] .studio-story,
body[data-cx-theme] .studio-reading {
  --accent: var(--cx-cyan);
  --pigment: #294c86;
}
body[data-cx-theme] .studio-channels,
body[data-cx-theme] .studio-library {
  --accent: var(--cx-violet);
  --pigment: #483b83;
}
body[data-cx-theme] .studio-brush {
  opacity: 0.24;
}
body[data-cx-theme] .studio-story {
  background: radial-gradient(ellipse at 85% 50%, #354c8b22, transparent 65%);
  border-color: #72e7ff20;
}
body[data-cx-theme] .detail-item,
body[data-cx-theme] .metric-card,
body[data-cx-theme] .resource-card,
body[data-cx-theme] .w-plan,
body[data-cx-theme] .trial-card,
body[data-cx-theme] .calc,
body[data-cx-theme] .option-card,
body[data-cx-theme] .cx-reading-cta,
body[data-cx-theme] .studio-reading {
  background: linear-gradient(135deg, #15233b, #0c1426);
  border: 1px solid var(--cx-edge);
  border-radius: 16px;
  box-shadow: inset 0 1px #ffffff05;
}
body[data-cx-theme] .module {
  border-color: #263a5860;
}
body[data-cx-theme] .module:nth-of-type(even) {
  background-color: #0d142333;
}
body[data-cx-theme] .module h2 {
  letter-spacing: -0.045em;
}
body[data-cx-theme] .module p,
body[data-cx-theme] .hero-copy > p,
body[data-cx-theme] .studio-caption {
  color: var(--cx-soft);
}
body[data-cx-theme] input:not([type='checkbox']):not([type='radio']):not([type='range']),
body[data-cx-theme] select,
body[data-cx-theme] textarea {
  background: #080f20;
  color: var(--cx-text);
  border-color: #40597b;
  border-radius: 8px;
}
body[data-cx-theme] input:focus,
body[data-cx-theme] textarea:focus,
body[data-cx-theme] select:focus {
  border-color: var(--cx-cyan);
}
body[data-cx-theme] .cx-reading-cta span {
  color: var(--cx-cyan);
}
body[data-cx-theme] .cx-reading-bar {
  background: #0c162af5;
  border-color: #40597b;
}
body[data-cx-theme] .linkedin-rail {
  background: #0e192d;
  border-color: #40597b;
  color: #cdeeff;
}
body[data-cx-theme] .landing-close {
  background: radial-gradient(ellipse at 50% 110%, #3958a140, transparent 75%);
}
/* Reading pages keep their original content, but share the complete chrome. */
body[data-cx-theme] .docs-layout {
  padding-top: 42px;
  column-gap: 42px;
}
body[data-cx-theme] .docs-nav {
  top: 104px;
  max-height: calc(100dvh - 125px);
  padding: 16px;
  border: 1px solid var(--cx-edge);
  border-radius: 14px;
  background: #0c1528;
  scrollbar-width: thin;
  scrollbar-color: #40597b transparent;
}
body[data-cx-theme] .docs-group {
  color: var(--cx-cyan);
  font-size: 10px;
  letter-spacing: 0.12em;
}
body[data-cx-theme] .docs-nav a {
  font-size: 13px;
  padding: 8px 10px;
  border-left-color: #263a58;
  color: var(--cx-soft);
}
body[data-cx-theme] .docs-nav a[aria-current='page'] {
  color: var(--cx-text);
  border-left-color: var(--cx-cyan);
  background: linear-gradient(90deg, #72e7ff15, transparent);
}
body[data-cx-theme] .docs-main h1 {
  font-size: clamp(32px, 4vw, 55px);
  letter-spacing: -0.045em;
  color: var(--cx-text);
}
body[data-cx-theme] .docs-main a,
body[data-cx-theme] .post a {
  color: var(--cx-cyan);
}
body[data-cx-theme] .docs-main pre,
body[data-cx-theme] .post pre,
body[data-cx-theme] .ins-cmd {
  background: #080f20;
  border: 1px solid #2e4264;
  border-radius: 10px;
}
body[data-cx-theme] .docs-main table,
body[data-cx-theme] .post table {
  border-color: var(--cx-edge);
}
body[data-cx-theme] .docs-main th,
body[data-cx-theme] .post th {
  background: #14223b;
  color: var(--cx-text);
}
body[data-cx-theme] .docs-pager a {
  background: #0d172a;
  border: 1px solid var(--cx-edge);
  border-radius: 10px;
  padding: 18px;
  color: var(--cx-text);
}
body[data-cx-theme] .blog-page,
body[data-cx-theme] main:has(> .post),
body[data-cx-theme] main:has(> .blog-hero) {
  --neon: var(--cx-cyan);
  --neon-2: var(--cx-blue);
  --neon-3: var(--cx-violet);
  --glass: #10203a;
  --edge: var(--cx-edge);
}
body[data-cx-theme] .foot,
body[data-cx-theme] .site-footer {
  background: #080e1d;
  border-top-color: var(--cx-edge);
}
body[data-cx-theme] .signal-topology path,
body[data-cx-theme] .signal-topology circle {
  stroke: var(--cx-cyan);
}
@media (max-width: 1000px) {
  .cx-shell-inner {
    gap: 15px;
    padding-inline: 20px;
  }
  .cx-shell-nav {
    gap: 16px;
  }
  .cx-shell-nav > a:nth-last-child(3) {
    display: none;
  }
}
@media (max-width: 760px) {
  .cx-shell-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 12px 18px 9px;
    gap: 9px;
  }
  .cx-logo {
    font-size: 24px;
  }
  .cx-shell-trial {
    grid-column: 2;
    grid-row: 1;
    padding: 10px 13px;
    font-size: 11px;
  }
  .cx-shell-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    gap: 12px;
    font-size: 11px;
  }
  .cx-shell-nav > a:nth-last-child(3),
  .cx-shell-nav > a:last-child {
    display: none;
  }
  .cx-shell-nav a,
  .cx-products summary {
    min-height: 32px;
  }
  .cx-product-menu {
    left: -5px;
    width: min(300px, calc(100vw - 40px));
  }
  body[data-cx-theme] .docs-layout {
    padding-top: 22px;
    gap: 24px;
  }
  body[data-cx-theme] .docs-nav {
    position: relative;
    top: auto;
    max-height: none;
  }
  body[data-cx-theme] .docs-nav details[open] {
    max-height: 50dvh;
    overflow-y: auto;
  }
  body[data-cx-theme] .docs-pager a {
    padding: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  body[data-cx-theme] *,
  body[data-cx-theme] *::before,
  body[data-cx-theme] *::after {
    animation: none !important;
    transition: none !important;
  }
}

body[data-cx-theme] .evidence,
body[data-cx-theme] .boundary {
  background: #0b1425;
}
body[data-cx-theme] .final-action {
  background:
    radial-gradient(ellipse at 30% 50%, #3f4d8533, transparent 70%),
    linear-gradient(120deg, #131c35, #0c1d30);
}
body[data-cx-theme] .product-scene {
  background: radial-gradient(ellipse, #384f8b35, transparent), #0c172a;
  border-color: #365378;
}
body[data-cx-theme] .flow-paths {
  stroke: var(--cx-cyan);
  filter: none;
}
body[data-cx-theme] .scene-source,
body[data-cx-theme] .scene-viewer,
body[data-cx-theme] .protocol-tag,
body[data-cx-theme] .motion-control {
  background: #11213a;
  color: #c2e8ff;
  border-color: #40597b;
}
body[data-cx-theme] .item-number {
  color: var(--cx-cyan);
}
body[data-cx-theme] .contact-form,
body[data-cx-theme] .contact-done {
  background: linear-gradient(135deg, #14233d, #0c1426);
  border-color: var(--cx-edge);
}
body[data-cx-theme] .w-plan.featured {
  border-color: #72e7ff88;
  box-shadow: 0 0 60px #587eff12;
}
body[data-cx-theme] .studio-primary {
  transform: perspective(1500px) rotateY(-3deg) rotateZ(-1deg);
}
body[data-cx-theme] .studio-secondary {
  transform: rotate(2deg);
}
body[data-cx-theme] .studio-note {
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  body[data-cx-theme] .studio-primary,
  body[data-cx-theme] .studio-secondary {
    transform: none;
  }
}

/* A quiet moving signal connects the navigation across product and reading pages. */
.cx-shell {
  overflow: visible;
}
.cx-shell::after {
  content: '';
  position: absolute;
  inset: auto auto -1px 0;
  width: 22%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #72e7ff, #b4a2ff, transparent);
  pointer-events: none;
  animation: cx-signal-glide 14s linear infinite;
}
body.paused .cx-shell::after {
  animation-play-state: paused;
}
body[data-cx-theme] .studio-brush path:nth-child(2) {
  stroke: var(--cx-violet);
}
body[data-cx-theme] .studio-brush path:nth-child(3) {
  stroke: var(--cx-cyan);
}
@keyframes cx-signal-glide {
  from {
    transform: translateX(-105%);
    opacity: 0;
  }
  12%,
  88% {
    opacity: 0.8;
  }
  to {
    transform: translateX(465%);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cx-shell::after {
    animation: none;
    opacity: 0.6;
    left: 40%;
  }
}

/* Match the documentation layout's existing tablet breakpoint. */
@media (max-width: 860px) {
  body[data-cx-theme] .docs-nav {
    position: relative;
    top: auto;
    max-height: none;
  }
  body[data-cx-theme] .docs-nav details[open] {
    max-height: 50dvh;
    overflow-y: auto;
  }
}
