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

:root {
  --bg: #f4f4f2;
  --surface: #ffffff;
  --text: #111111;
  --muted: #6b6b6b;
  --accent: #111111;
  --accent-hover: #333333;
  --border: #e2e2e0;
  --viewer-bg: #ebebea;
  --header-h: 60px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* ─── Header ─────────────────────────────────────────────── */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  gap: 2rem;
}

.logo {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--text);
}

.logo span {
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-left: 1px;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.875rem;
  transition: color 0.15s;
}

nav a:hover { color: var(--text); }

.header-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.header-actions a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.875rem;
}

nav a.active {
  color: var(--text);
  font-weight: 600;
}

.nav-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  background: var(--text);
  color: white;
  letter-spacing: 0.04em;
}

.nav-badge--featured {
  background: #0047FF;
}

/* ─── Product layout ──────────────────────────────────────── */

.product-page {
  display: grid;
  grid-template-columns: 1fr 420px;
  min-height: calc(100vh - var(--header-h));
}

/* ─── Viewer column ───────────────────────────────────────── */

.viewer-column {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  background: var(--viewer-bg);
  display: flex;
  flex-direction: column;
  /* needed so the absolute loading overlay is contained here */
  overflow: hidden;
}

vntana-viewer,
.viewer-column iframe {
  flex: 1;
  width: 100%;
  border: none;
}

/* ─── PDP tabs ────────────────────────────────────────────── */

.pdp-tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--bg);
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 1.5rem;
  /* Sticks to the top of the scrollable product column */
  position: sticky;
  top: 0;
  z-index: 15;
}

.pdp-tab {
  flex: 1;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  transition: background 0.12s, color 0.12s;
  font-family: inherit;
  text-align: center;
}

.pdp-tab:hover { color: var(--text); }

.pdp-tab.active {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.pdp-tab-content {
  display: none;
  flex-direction: column;
}

.pdp-tab-content.active {
  display: flex;
  flex-direction: column;
}

/* ─── Behind the scenes tab ───────────────────────────────── */

.behind-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.behind-intro {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.behind-intro code {
  background: var(--bg);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  font-size: 0.85em;
  color: var(--text);
}

.behind-features {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.behind-feature {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.behind-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0047FF;
  background: #0047FF12;
  padding: 0.18rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.45rem;
  font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
}

.behind-feature-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.behind-feature-desc {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.behind-feature-desc code {
  background: var(--bg);
  padding: 0.1em 0.3em;
  border-radius: 3px;
  font-size: 0.88em;
  color: var(--text);
}

.behind-code {
  background: #0d1117;
  color: #a5d6ff;
  padding: 0.55rem 0.8rem;
  border-radius: 7px;
  font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
  font-size: 0.74rem;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
}

.behind-footer {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.behind-footer-row {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ─── Custom loading overlay ──────────────────────────────── */

@keyframes spin {
  to { transform: rotate(360deg); }
}

.viewer-loading {
  position: absolute;
  inset: 0;
  /* sits below the viewer-hint strip at the bottom */
  bottom: 37px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--viewer-bg);
  transition: opacity 0.65s ease;
}

.viewer-loading-bg {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.35;
}

.viewer-loading-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.viewer-loading-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.viewer-loading-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.viewer-loading--done {
  opacity: 0;
  pointer-events: none;
}

/* Button positioning — matches VNTANA viewer-demo defaults */

vntana-viewer::backdrop {
  background-color: white;
}

vntana-center-button {
  position: absolute;
  top: 19px;
  right: 19px;
  z-index: 1;
}

vntana-fs-button {
  position: absolute;
  right: 19px;
  bottom: 25px;
  z-index: 2;
}

.zoom-buttons {
  position: absolute;
  right: 19px;
  bottom: 85px;
  z-index: 3;
  flex-direction: column;
}

vntana-qr-button,
vntana-ar-button {
  position: absolute;
  top: 19px;
  left: 19px;
  z-index: 4;
}

.button-container {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 1px;
  box-sizing: border-box;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.15);
  border-radius: 5px;
  background-color: #cdcdcd;
  overflow: hidden;
}

.button-container * {
  flex: 0 1 auto;
  position: static;
  box-shadow: none;
  border-radius: 0;
}

.expandable {
  transition: max-width 0.3s linear;
}

.expandable:not(:hover) {
  max-width: var(--computed-button-size);
}

.expandable:not(:hover)::part(default-text) {
  opacity: 0;
  transition: opacity 0.3s linear;
}

.expandable:hover::part(default-text) {
  opacity: 1;
}

.viewer-hint {
  padding: 0.6rem 1rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  background: var(--viewer-bg);
  border-top: 1px solid var(--border);
  letter-spacing: 0.01em;
}

/* ─── Product column ──────────────────────────────────────── */

.product-column {
  background: var(--surface);
  border-left: 1px solid var(--border);
  padding: 2.5rem 2rem;
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.breadcrumb {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.product-name {
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}

.product-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.custom-tree {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  min-width: 200px;
  max-height: calc(100% - 24px);
  overflow-y: auto;
  font-size: 0.8rem;
}
.custom-tree-header {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 10px 14px 6px;
  border-bottom: 1px solid var(--border);
}
.custom-tree-list { padding: 4px 0; }
.custom-tree-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.1s;
  border-radius: 0;
}
.custom-tree-row:hover { background: #f2f2f2; }
.custom-tree-row--active { background: #e8f0fe; }
.custom-tree-row--active .custom-tree-name { color: #1a56db; font-weight: 600; }
.custom-tree-icon { font-size: 0.65rem; color: var(--muted); flex-shrink: 0; }
.custom-tree-name { flex: 1; font-weight: 500; }
.custom-tree-count { color: var(--muted); font-size: 0.72rem; }
.custom-tree-avail { color: #991b1b; font-size: 0.68rem; }

.parts-catalog-header {
  margin-bottom: 1.25rem;
}
.parts-catalog-header .product-subtitle { margin: 0 0 1rem; }
.parts-catalog-header .btn-primary { width: 100%; }

.parts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.parts-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--border);
}
.parts-table td {
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.parts-table tr:hover td { background: #f8f8f8; cursor: pointer; }
.parts-table-sku { font-family: monospace; color: var(--muted); font-size: 0.75rem; }
.parts-table-name { font-weight: 500; }
.parts-table-price { font-weight: 600; }
.avail-in  { color: #1a6b3c; }
.avail-low { color: #b45309; }
.avail-out { color: #991b1b; }
.btn-table-cart {
  background: #111;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  cursor: pointer;
  white-space: nowrap;
}
.btn-table-cart:hover { background: #333; }
.btn-table-cart:disabled { background: #ccc; cursor: not-allowed; }

.part-render {
  width: 100%;
  border-radius: 8px;
  margin: 0.75rem 0 1rem;
  background: #f5f5f5;
  display: block;
}

.part-price-note {
  font-size: 0.85rem;
  font-weight: 400;
  color: #666;
  letter-spacing: 0;
}

.price-cents {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* ─── Variants ────────────────────────────────────────────── */

.variant-group {
  margin-bottom: 1.25rem;
}

.variant-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.6rem;
  display: flex;
  gap: 0.4rem;
  align-items: baseline;
}

.variant-selected {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
}

.variant-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.variant-btn {
  padding: 0.45rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text);
  transition: border-color 0.12s;
  font-family: inherit;
}

.variant-btn:hover {
  border-color: var(--text);
}

.variant-btn.active {
  border-color: var(--text);
  background: var(--text);
  color: white;
}

/* Swatch buttons */
.variant-btn.swatch {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  background: var(--swatch) !important;
  color: transparent;
}

.variant-btn.swatch.active {
  outline: 2px solid var(--text);
  outline-offset: 2px;
  background: var(--swatch) !important;
}

.variant-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* ─── CTA buttons ─────────────────────────────────────────── */

.btn-primary {
  width: 100%;
  padding: 1rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 7px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 0.6rem;
  transition: background 0.15s;
  font-family: inherit;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  width: 100%;
  padding: 0.9rem;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.15s;
  font-family: inherit;
}

.btn-secondary:hover {
  border-color: var(--text);
}

/* ─── Description & features ──────────────────────────────── */

.product-description {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.feature-list li {
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--muted);
}

.feature-list li::before {
  content: "✓";
  color: var(--text);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05em;
}

/* ─── AR callout ──────────────────────────────────────────── */

.ar-callout {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.ar-callout-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1em;
}

.ar-callout strong {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.2rem;
}

.ar-callout p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ─── Custom UI callout ───────────────────────────────────── */

.custom-ui-callout {
  padding: 1.1rem 1.25rem;
  background: linear-gradient(135deg, #0047FF10 0%, #0047FF06 100%);
  border: 1px solid #0047FF30;
  border-radius: 10px;
  margin-top: 1rem;
}

.custom-ui-callout-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0047FF;
  background: #0047FF18;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
}

.custom-ui-callout-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.custom-ui-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.custom-ui-feature-list li {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.custom-ui-feature-list li::before {
  content: "●";
  color: #0047FF;
  font-size: 0.45rem;
  flex-shrink: 0;
  margin-top: 0.05em;
}

/* ─── Viewer controls (camera / env / bg) ────────────────── */

.viewer-controls {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.vc-section {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.vc-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.vc-buttons {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.vc-btn {
  padding: 0.35rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text);
  transition: border-color 0.12s, background 0.12s, color 0.12s;
  font-family: inherit;
}

.vc-btn:hover {
  border-color: var(--text);
}

.vc-btn.active {
  border-color: var(--text);
  background: var(--text);
  color: white;
}

/* Background colour swatches */
.bg-swatches .vc-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  background: var(--bg-color) !important;
  border: 1.5px solid rgba(0,0,0,0.1);
}

.bg-swatches .vc-btn.active {
  outline: 2px solid var(--text);
  outline-offset: 2px;
  border-color: transparent;
  background: var(--bg-color) !important;
}

/* ─── Render gallery ──────────────────────────────────────── */

.render-gallery {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.gallery-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gallery-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  /* rows add automatically as images are appended */
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  display: block;
}

.gallery-grid img:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

.render-placeholder {
  aspect-ratio: 1;
  background: var(--bg);
  border-radius: 6px;
  border: 1.5px dashed var(--border);
}

.render-video {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: block;
  background: #000;
}

.gallery-label-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #0047FF;
  background: #0047FF14;
  padding: 0.12rem 0.45rem;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 0.3rem;
  font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
}

/* ─── Mobile ──────────────────────────────────────────────── */

@media (max-width: 900px) {
  .product-page {
    grid-template-columns: 1fr;
    grid-template-rows: 60vw auto;
  }

  .viewer-column {
    position: static;
    height: 60vw;
  }

  .product-column {
    height: auto;
    overflow-y: visible;
    border-left: none;
    border-top: 1px solid var(--border);
  }

  nav { display: none; }
}

/* ─── Hotspots ────────────────────────────────────────────── */

@keyframes hotspot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 71, 255, 0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(0, 71, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 71, 255, 0); }
}

vntana-hotspot {
  cursor: pointer;
  z-index: 10;
}

vntana-hotspot.hide {
  /* Viewer adds .hide when a hotspot is behind geometry.
     Keep the element in the pointer-events flow (clickable) but
     give the pin a clear "behind" look via its child. */
}

vntana-hotspot.hide .hotspot-pin {
  opacity: 0.45;
  transform: scale(0.72);
  animation: none;           /* stop the pulse — background pins shouldn't demand attention */
  background: #4a78cc;       /* muted blue — distinct from the active #0047FF */
  box-shadow: none;
}

.hotspot-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0047FF;
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  border: 3px solid white;
  box-shadow: 0 3px 12px rgba(0, 71, 255, 0.45);
  transition: transform 0.18s, background 0.18s, box-shadow 0.18s;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  animation: hotspot-pulse 2.2s ease-out infinite;
}

vntana-hotspot:hover .hotspot-pin,
vntana-hotspot.open .hotspot-pin {
  background: #0033cc;
  transform: scale(1.18);
  animation: none;
  box-shadow: 0 4px 16px rgba(0, 51, 204, 0.55);
}

.hotspot-popup {
  display: none;
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  padding: 0.85rem 1rem;
  min-width: 180px;
  max-width: 240px;
  z-index: 20;
  border: 1px solid var(--border);
}

vntana-hotspot.open .hotspot-popup {
  display: block;
}

.hotspot-popup img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  display: block;
}

.hotspot-text {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text);
}

.hotspot-text p { margin: 0; }

.hotspot-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--muted);
  padding: 2px 4px;
  line-height: 1;
}

.hotspot-close:hover { color: var(--text); }

/* ─── Hero ────────────────────────────────────────────────── */

.hero {
  background: var(--text);
  color: white;
  padding: 5rem 2rem;
  text-align: center;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── Catalog ─────────────────────────────────────────────── */

.catalog {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.catalog-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.catalog-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ─── Product card ────────────────────────────────────────── */

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.card-image {
  position: relative;
  aspect-ratio: 1;
  background: var(--viewer-bg);
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
}

.card-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

.card-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.card-category {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.card-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-subtitle {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.card-price {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* ─── Landing page ────────────────────────────────────────── */

body.landing {
  background: var(--text);
  color: white;
}

body.landing header {
  background: var(--text);
  border-bottom-color: rgba(255,255,255,0.1);
}

body.landing .logo { color: white; }
body.landing nav a { color: rgba(255,255,255,0.5); }
body.landing .header-actions a { color: rgba(255,255,255,0.7); }

.landing-hero {
  text-align: center;
  padding: 5rem 2rem 3rem;
}

.landing-hero .hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}

.landing-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: white;
}

.landing-hero .hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── Industry use cases section ─────────────────────────── */

.use-cases-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.3);
  margin: 0 auto 1.25rem;
  padding: 0 2rem;
  max-width: 1100px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.use-cases-label::before,
.use-cases-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

.use-cases-cards {
  margin-top: 0;
}

.use-cases-cards .demo-card {
  max-width: 380px;
}

.use-cases-logo {
  padding: 1.25rem 1.5rem 0;
  opacity: 0.4;
  line-height: 1;
}

.use-cases-logo img {
  display: block;
}

/* ─── Demo cards (landing) ────────────────────────────────── */

.demo-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 1100px;
  margin: 2rem auto 4rem;
  padding: 0 2rem;
}

.demo-card {
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 14px;
  text-decoration: none;
  color: white;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
  overflow: hidden;
}

.demo-card:hover {
  background: #0047FF;
  border-color: #0047FF;
  transform: translateY(-3px);
}

.demo-card--featured {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.28);
}

.demo-step {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.08);
  padding: 1.25rem 1.5rem 0;
  line-height: 1;
}

.demo-card--featured .demo-step { color: rgba(255,255,255,0.08); }

.demo-card-body {
  flex: 1;
  padding: 0.5rem 1.5rem 1.25rem;
}

.demo-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.5rem;
}

.demo-card--featured .demo-tag { color: rgba(255,255,255,0.65); }

.demo-card h2 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.demo-card p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
}

.demo-card--featured p { color: rgba(255,255,255,0.8); }

.demo-card p code {
  background: rgba(255,255,255,0.12);
  padding: 0.1em 0.3em;
  border-radius: 3px;
  font-size: 0.85em;
}

.demo-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.demo-card--featured .demo-card-footer {
  border-top-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
}

.demo-card:hover .demo-card-footer span { transform: translateX(3px); }
.demo-card-footer span { display: inline-block; transition: transform 0.15s; }

/* ─── Demo nav (step tabs) ────────────────────────────────── */

.cart-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  margin-left: auto;
  transition: background 0.2s;
}
.cart-btn:hover { background: #333; }
.cart-btn.cart-flash { background: #1a6b3c; }

nav.demo-nav {
  display: flex;
  gap: 0.25rem;
  background: var(--bg);
  border-radius: 8px;
  padding: 3px;
}

nav.demo-nav a {
  padding: 0.3rem 0.85rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}

nav.demo-nav a:hover { color: var(--text); }

nav.demo-nav a.active {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Home link — sits before the step pills, visually separated */
.demo-nav-home {
  color: var(--muted) !important;
  font-size: 0.78rem !important;
  padding-right: 0.6rem !important;
  border-right: 1px solid var(--border);
  margin-right: 0.1rem;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
}
.demo-nav-home:hover { color: var(--text) !important; }

/* ─── Embed info col extras ───────────────────────────────── */

.embed-step-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.next-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1.25rem;
  background: var(--text);
  color: white;
  text-decoration: none;
  border-radius: 7px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.15s;
}

.next-link:hover { background: #333; }

/* ─── Landing footer ──────────────────────────────────────── */

.landing-footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

.landing-footer a { color: rgba(255,255,255,0.5); }

/* ─── Embed page ──────────────────────────────────────────── */

.embed-page {
  display: grid;
  grid-template-columns: 1fr 420px;
  min-height: calc(100vh - var(--header-h));
}

.embed-viewer-col {
  background: #1a1a1a;
  display: flex;
}

.embed-viewer-col iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: calc(100vh - var(--header-h));
  display: block;
}

.embed-info-col {
  background: var(--surface);
  border-left: 1px solid var(--border);
  padding: 2.5rem 2rem;
  overflow-y: auto;
  height: calc(100vh - var(--header-h));
}

.embed-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.embed-title {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.embed-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.embed-desc code {
  background: var(--bg);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  font-size: 0.85em;
  color: var(--text);
}

/* Code block */

.code-block {
  background: #0d1117;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  font-size: 0.78rem;
}

.code-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.4);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.copy-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  color: rgba(255,255,255,0.7);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.7rem;
  font-family: inherit;
  transition: background 0.15s;
}

.copy-btn:hover { background: rgba(255,255,255,0.2); }

.code-block pre {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
  color: #e6edf3;
  line-height: 1.65;
  white-space: pre;
}

.code-block code {
  font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
}

/* Embed feature list */

.embed-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.embed-feature-list li {
  font-size: 0.875rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.embed-feature-list li::before {
  content: "✓";
  color: #0047FF;
  font-weight: 700;
  flex-shrink: 0;
}

.compare-link {
  display: inline-block;
  padding: 0.8rem 1.25rem;
  background: var(--text);
  color: white;
  text-decoration: none;
  border-radius: 7px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.15s;
}

.compare-link:hover { background: #333; }

@media (max-width: 900px) {
  .comparison {
    flex-direction: column;
    gap: 1rem;
  }
  .compare-divider { padding: 0.5rem 0; }
  .embed-page {
    grid-template-columns: 1fr;
    grid-template-rows: 70vw auto;
  }
  .embed-viewer-col iframe { min-height: 70vw; }
  .embed-info-col { height: auto; overflow-y: visible; }
}

/* ─── Parts catalog ───────────────────────────────────────── */

vntana-scene-graph-button,
vntana-scene-graph {
  display: none;
}

.explode-control {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.3rem 0.75rem;
  z-index: 4;
  backdrop-filter: blur(4px);
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.explode-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  white-space: nowrap;
}

.explode-control input[type="range"] {
  width: 120px;
  accent-color: var(--accent);
}

.parts-default-hero {
  width: 100%;
  max-height: 220px;
  display: block;
  object-fit: contain;
  background: #f5f5f5;
  padding: 1rem 0;
}

.part-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  color: var(--muted);
}
.part-placeholder[hidden] { display: none; }

.part-exploded-preview {
  width: 100%;
  border-radius: 8px;
  display: block;
  margin-bottom: 0.25rem;
}

.part-placeholder-text {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 300px;
}

.part-selected-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #0047FF;
  margin-bottom: 0.4rem;
}

.part-name {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.part-number-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.25rem;
}

.part-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  background: var(--bg);
  border-radius: 7px;
  border: 1px solid var(--border);
}

.part-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
}

.part-meta-label {
  color: var(--muted);
}

.part-meta-value {
  font-weight: 500;
  color: var(--text);
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
  width: fit-content;
}

.qty-btn {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text);
  transition: background 0.12s;
  font-family: inherit;
}

.qty-btn:hover { background: var(--bg); }

.qty-value {
  min-width: 40px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  line-height: 40px;
}

/* ─── Lightbox ────────────────────────────────────────────── */

/* ─── Viewer control extras ───────────────────────────────── */

.vc-row2 {
  margin-top: 0.4rem;
}

.vc-slider-value {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-left: 0.25rem;
}

.vc-slider {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  margin-top: 0.45rem;
  display: block;
}

.vc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text);
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.vc-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text);
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

/* ─── Lightbox ────────────────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: lb-in 0.18s ease;
}

.lightbox[hidden] { display: none; }

@keyframes lb-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  cursor: default;
  animation: lb-scale 0.2s ease;
}

@keyframes lb-scale {
  from { transform: scale(0.94); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  backdrop-filter: blur(4px);
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.28); }

/* ─── Optimization callout ────────────────────────────────── */

.opt-callout {
  padding: 0.9rem 1rem;
  background: linear-gradient(135deg, #0047FF09 0%, #0047FF04 100%);
  border: 1px solid #0047FF22;
  border-radius: 9px;
}

.opt-callout-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #0047FF;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.opt-callout-label::before {
  content: "✦";
  font-size: 0.55rem;
}

.opt-callout-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem 0.75rem;
}

.opt-stat {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.opt-stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 600;
}

.opt-stat-value {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
