:root {
  --bg: #0B0C0E;
  --bg-2: #0F1114;
  --ink: #EDEFF3;
  --muted: #A4AAB5;
  --faint: #6C727D;
  --line: rgba(255, 255, 255, 0.08);
  --glass: rgba(24, 26, 31, 0.62);
  --cyan: #22C3EE;
  --violet: #A4AAB5;
  --fill: #22C3EE;
  --fill-ink: #04141A;
  --ok: #34C77B;
  --bad: #F0564F;
  --radius: 22px;
  --nav: 72px;
  --max: 1120px;
  --sans: "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

.cosmos {
  position: fixed;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(40, 130, 190, 0.38), transparent 42%),
    radial-gradient(ellipse at 80% 10%, rgba(110, 50, 180, 0.28), transparent 40%),
    radial-gradient(ellipse at 50% 90%, rgba(16, 90, 100, 0.32), transparent 46%),
    #0B0C0E;
  animation: cosmos 32s ease-in-out infinite alternate;
}

body {
  margin: 0;
  background: #0B0C0E;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.035) 0,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: overlay;
  opacity: 0.35;
  z-index: 8;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--cyan); text-underline-offset: 0.18em; }
a:hover { color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  z-index: 20;
}
.skip:focus { top: 0.75rem; }

.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;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

h1, h2, h3, p { margin: 0; }

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.2rem);
  text-shadow: 0 0 32px rgba(34, 195, 238, 0.18);
}
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.03em; line-height: 1.15; }

.eyebrow,
.kicker {
  margin: 0 0 0.75rem;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.kicker { color: var(--violet); }

.lede,
.section-lead { color: var(--muted); max-width: 40rem; }

.section {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto 1.25rem;
  padding: 2rem 1.2rem 2.2rem;
  position: relative;
  z-index: 1;
  background: rgba(24, 26, 31, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
}

.section-head { margin-bottom: 1.75rem; max-width: 42rem; }
.section-head h2 { margin-bottom: 0.85rem; }

.glass {
  background: rgba(24, 26, 31, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--fill);
  color: var(--fill-ink);
  box-shadow: 0 0 24px rgba(34, 195, 238, 0.35);
}
.btn-primary:hover { background: #4FD1F2; color: var(--fill-ink); }

.btn-ghost {
  background: rgba(24, 26, 31, 0.45);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--ink); }

.btn:disabled { opacity: 0.65; cursor: progress; }

.nav {
  position: sticky;
  top: 0.6rem;
  z-index: 10;
  width: min(var(--max), calc(100% - 1.25rem));
  margin: 0.6rem auto 0;
  background: rgba(24, 26, 31, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}

.nav-bar {
  width: min(var(--max), calc(100% - 1.5rem));
  margin: 0 auto;
  min-height: var(--nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.brand img { width: 32px; height: 32px; }

.nav-check {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--cyan);
  border-radius: 2px;
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

.nav-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  padding: 0.8rem;
  background: #16181C;
  border: 1px solid var(--line);
  border-radius: 18px;
  flex-direction: column;
  gap: 0.2rem;
}
.nav-check:checked ~ .nav-panel { display: flex; }
.nav-panel a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
}
.nav-panel a:hover { background: rgba(34, 195, 238, 0.08); color: var(--ink); }
.nav-cta { margin-top: 0.35rem; }

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
  width: min(1180px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
  min-height: calc(100svh - var(--nav));
  align-items: center;
}

.hero-copy { display: grid; gap: 1rem; justify-items: start; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.stage3d {
  position: relative;
  min-height: 320px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(34, 195, 238, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(24, 26, 31, 0.2), rgba(11, 12, 14, 0.2));
  border: 1px solid var(--line);
  box-shadow: 0 0 80px rgba(34, 195, 238, 0.12);
}

.stage3d::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 195, 238, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 195, 238, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 55%, #000 20%, transparent 72%);
  pointer-events: none;
}

.stage3d-fallback,
#scan {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#scan { opacity: 0; z-index: 1; }
.stage3d.is-live #scan { opacity: 1; }
.stage3d.is-live .stage3d-fallback { opacity: 0; }

.stage3d-fallback { z-index: 0; }

.stage-caption {
  position: absolute;
  left: 0.9rem;
  bottom: 0.8rem;
  z-index: 2;
  margin: 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.count {
  width: min(100%, 460px);
  padding: 0.85rem 0.85rem 0.65rem;
  border-radius: 20px;
}

.count-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}

.count-grid span {
  display: block;
  font-family: var(--mono);
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  color: var(--cyan);
}
.count-grid small {
  color: var(--faint);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.count-note { margin-top: 0.4rem; color: var(--faint); font-size: 0.8rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.steps,
.features,
.workflows { display: grid; gap: 0.9rem; }

.steps { margin: 0; padding: 0; }
.steps li,
.feature,
.workflows article { padding: 1.2rem 1.15rem 1.3rem; list-style: none; }

.step-no {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

.steps p,
.feature p,
.workflows p,
.faq p,
.reqs dd,
.footer p,
.mac figcaption { color: var(--muted); }

.steps h3,
.feature h3,
.workflows h3 { margin-bottom: 0.45rem; }

.reel-wrap { display: grid; gap: 0.8rem; }
.reel-bar { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; }
.reel-actions { display: flex; gap: 0.4rem; }
.reel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(24, 26, 31, 0.7);
  color: var(--cyan);
  font-size: 1.4rem;
  cursor: pointer;
}

.reel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.4rem;
  scrollbar-color: rgba(34, 195, 238, 0.4) transparent;
}

.mac {
  flex: 0 0 min(100%, 860px);
  scroll-snap-align: center;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0F1114;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 0 40px rgba(34, 195, 238, 0.08);
}

.mac-top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  height: 36px;
  padding: 0 0.8rem;
  background: linear-gradient(#16181C, #111317);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.mac-title {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.mac img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background:
    linear-gradient(rgba(34, 195, 238, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 195, 238, 0.08) 1px, transparent 1px),
    #0F1114;
  background-size: 32px 32px;
}

.mac figcaption {
  padding: 0.7rem 0.9rem 0.85rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dots { display: flex; gap: 0.4rem; }
.dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(34, 195, 238, 0.28);
  cursor: pointer;
}
.dot.is-on { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

.cmp {
  --pct: 56;
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0F1114;
  box-shadow: 0 0 50px rgba(34, 195, 238, 0.1);
}

.cmp-mesh,
.cmp-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cmp-photo {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(var(--pct) * 1%);
  overflow: hidden;
  border-right: 2px solid var(--cyan);
  box-shadow: 8px 0 24px rgba(34, 195, 238, 0.25);
}

.cmp-photo img {
  width: calc(100% * 100 / var(--pct));
  max-width: none;
}

.cmp-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.cmp-tag {
  position: absolute;
  top: 0.7rem;
  z-index: 2;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(14, 15, 18, 0.72);
  border: 1px solid var(--line);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  pointer-events: none;
}
.cmp-tag.photo { left: 0.7rem; }
.cmp-tag.mesh { right: 0.7rem; }

.specs {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0 0;
  padding: 0;
}
.specs li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  align-items: baseline;
}
.specs span { color: var(--muted); }
.slot {
  font-family: var(--mono);
  color: var(--cyan);
  letter-spacing: 0.04em;
  font-weight: 600;
}

.reqs { padding: 0.3rem 1.15rem; }
.reqs dl { margin: 0; }
.reqs div {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(34, 195, 238, 0.1);
}
.reqs div:last-child { border-bottom: 0; }
.reqs dt { font-weight: 700; letter-spacing: -0.03em; }
.reqs dd { margin: 0; }

.faq { display: grid; gap: 0.7rem; }
.faq details { padding: 0.15rem 1.05rem; }
.faq summary {
  cursor: pointer;
  padding: 0.95rem 0;
  font-weight: 700;
  letter-spacing: -0.03em;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--cyan);
  font-weight: 500;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 1rem; }

.waitlist-card {
  display: grid;
  gap: 1.4rem;
  padding: 1.4rem;
}
.waitlist-card h2 { margin-bottom: 0.7rem; }

form label { display: block; font-size: 0.86rem; margin-bottom: 0.4rem; }
.form-row { display: grid; gap: 0.6rem; }

input[type="email"] {
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.4);
  color: var(--ink);
  font: inherit;
}
input[type="email"]::placeholder { color: var(--faint); }
input[type="email"][aria-invalid="true"] { border-color: #F0564F; }

.form-status { min-height: 1.5rem; margin-top: 0.7rem; font-size: 0.95rem; }
.form-status.is-ok { color: var(--ok); }
.form-status.is-bad { color: var(--bad); }

.footer {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 2.5rem;
  border-top: 1px solid rgba(34, 195, 238, 0.14);
}
.footer-grid { display: grid; gap: 1.5rem; padding: 1.5rem 0; }
.legal { color: var(--faint); font-size: 0.88rem; }

.thanks {
  min-height: 100svh;
  display: grid;
  align-content: center;
  gap: 0.8rem;
  width: min(36rem, calc(100% - 2rem));
  margin: 0 auto;
}

.reveal.arm {
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.arm:not(.is-in) {
  opacity: 0;
  transform: translateY(22px);
}

@media (min-width: 860px) {
  .hero { grid-template-columns: 1.05fr 0.95fr; padding-top: 2rem; }
  .stage3d { min-height: 520px; }
  .form-row { grid-template-columns: 1fr auto; align-items: center; }
  .steps, .workflows { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .reqs div { grid-template-columns: 11rem 1fr; gap: 1.5rem; align-items: baseline; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .waitlist-card { grid-template-columns: 1.1fr 1fr; align-items: center; padding: 2rem; }
  .accuracy-grid { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 1rem; align-items: center; }
  .specs { margin-top: 0; }
}

@media (min-width: 1040px) {
  .nav-toggle { display: none; }
  .nav-panel {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 0.1rem;
    padding: 0;
    background: transparent;
    border: 0;
  }
  .nav-panel a { padding: 0.4rem 0.65rem; }
  .nav-cta { margin: 0 0 0 0.35rem; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .features { grid-template-columns: repeat(3, 1fr); }
  .workflows { grid-template-columns: repeat(3, 1fr); }
  .feature-span { grid-column: 1 / -1; }
  .feature-span p { max-width: 44rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before, .cosmos { animation: none; }
  body::before { display: none; }
  .pulse { box-shadow: none; }
  .reveal.arm,
  .reveal.arm:not(.is-in) { opacity: 1; transform: none; transition: none; }
  .reel { scroll-behavior: auto; }
}

.wordmark {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 750;
  letter-spacing: 0.04em;
  line-height: 0.9;
}
.section { scroll-margin-top: 6.5rem; }
.legend[hidden], .overlay-toggles[hidden], .ar-link[hidden], .viewer-poster[hidden] { display: none; }
h1 { font-size: clamp(2.1rem, 5.2vw, 4.2rem); }

.viewer-card { padding: 0.9rem; display: grid; gap: 0.8rem; }
.model-tabs, .overlay-toggles, .viewer-tools { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.model-tabs button, .overlay-toggles button {
  min-height: 40px;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.model-tabs button.is-on, .overlay-toggles button.is-on {
  background: var(--fill);
  color: var(--fill-ink);
  border-color: transparent;
}
.viewer-frame {
  position: relative;
  min-height: 280px;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  overflow: hidden;
  background: #0F1114;
}
.viewer-frame canvas, .viewer-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0F1114;
}
.viewer-status {
  position: absolute;
  left: 0.8rem;
  bottom: 0.7rem;
  margin: 0;
  max-width: calc(100% - 1.6rem);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(14, 15, 18, 0.78);
  color: var(--muted);
  font-size: 0.82rem;
}
.demo-note {
  margin: 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.legend { display: flex; align-items: center; gap: 0.45rem; color: var(--faint); font-size: 0.78rem; }
.legend-bar {
  width: 88px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1e47d8, #26d1c8, #f2d12e, #db291f);
}
.ar-link { gap: 0.45rem; }
.ar-link img { width: 28px; height: 28px; }
.print-grid { display: grid; gap: 1rem; }
#print-form { display: grid; gap: 0.55rem; padding: 1.1rem; align-content: start; }
#print-form input, #print-form select, #print-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  color: var(--ink);
  font: inherit;
}
#print-form textarea { min-height: 96px; }
.print-row { display: grid; gap: 0.6rem; }
.estimate { color: var(--cyan); font-size: 0.95rem; }
.hero, .footer {
  background: rgba(24, 26, 31, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
}
.hero { width: min(var(--max), calc(100% - 2rem)); padding: 1.4rem 1.2rem 1.6rem; margin-top: 0.8rem; }
.footer { padding: 0.4rem 1.2rem 1.4rem; border-top: 0; }

@keyframes cosmos {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 1.5%, 0) scale(1.06); }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .section, .nav, .hero, .footer { background: rgba(24, 26, 31, 0.94); }
}

@media (min-width: 860px) {
  .print-grid { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
  .print-row { grid-template-columns: 1fr 8rem; }
  .viewer-frame { min-height: 420px; }
}

/* ==========================================================================
   HB3D UI v1.0 theme layer: tokens from HB3D-Design-Spec.md (src/tokens.json).
   Single accent HB3D Cyan #22C3EE on near-black #0B0C0E with neutral glass.
   ========================================================================== */
:root {
  --bg: #0B0C0E; --bg-2: #0F1114; --viewport: #0F1114;
  --grey1: #16181C; --grey2: #23262C; --grey3: #353A42;
  --text1: #EDEFF3; --text2: #A4AAB5; --text3: #6C727D;
  --accent: #22C3EE; --accent-hover: #4FD1F2; --accent-pressed: #0FA6CF; --on-accent: #04141A;
  --accent-subtle: rgba(34, 195, 238, 0.16);
  --success: #34C77B; --warning: #F2A33A; --error: #F0564F; --snap: #FFC53D;
  --glass-panel: rgba(24, 26, 31, 0.72); --glass-toolbar: rgba(14, 15, 18, 0.86);
  --glass-chip: rgba(24, 26, 31, 0.72); --glass-docked: rgba(17, 19, 23, 0.94);
  --hairline: rgba(255, 255, 255, 0.08); --strong: rgba(255, 255, 255, 0.14);
  --inner-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --shadow-float: 0 12px 32px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.30);
  --focus-ring: 0 0 0 2px rgba(34, 195, 238, 0.25);
  --r-window: 12px; --r-panel: 10px; --r-button: 6px; --r-rail: 8px; --r-input: 5px; --r-chip: 11px;
  /* legacy names used by the site */
  --ink: var(--text1); --muted: var(--text2); --faint: var(--text3);
  --line: var(--hairline); --glass: var(--glass-panel);
  --cyan: var(--accent); --violet: var(--text2); --fill: var(--accent); --fill-ink: var(--on-accent);
  --ok: var(--success); --bad: var(--error);
  --radius: var(--r-window);
  --sans: "SF Pro Text", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --display: "SF Pro Display", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
}

body { background: var(--bg); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
/* Viewport backdrop: the app's grid (gridMinor / gridMajor), no colour nebula */
.cosmos {
  inset: 0;
  animation: none;
  background:
    linear-gradient(#22262D 1px, transparent 1px) 0 0 / 160px 160px,
    linear-gradient(90deg, #22262D 1px, transparent 1px) 0 0 / 160px 160px,
    linear-gradient(#171A1F 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, #171A1F 1px, transparent 1px) 0 0 / 32px 32px,
    radial-gradient(ellipse at 50% 0%, rgba(34, 195, 238, 0.07), transparent 60%),
    var(--viewport);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 35%, rgba(0,0,0,0.55) 85%);
          mask-image: radial-gradient(ellipse at 50% 30%, #000 35%, rgba(0,0,0,0.55) 85%);
}
body::before { display: none; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; }
h1 { text-shadow: none; }
h3 { letter-spacing: -0.01em; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; box-shadow: var(--focus-ring); }

/* Panel header type: 11/600, 0.06em, uppercase */
.eyebrow, .kicker, .demo-note {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; color: var(--text3);
}
.eyebrow { color: var(--accent); }
.step-no { font-family: var(--mono); color: var(--accent); }

/* Glass surfaces */
.section, .hero, .footer {
  background: var(--glass-docked);
  border: 1px solid var(--hairline);
  border-radius: var(--r-window);
  box-shadow: var(--shadow-float), var(--inner-highlight);
}
.glass {
  background: var(--glass-panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-panel);
  box-shadow: var(--inner-highlight);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
}
.glass:hover { border-color: var(--strong); }
.nav {
  background: var(--glass-toolbar);
  border: 1px solid var(--hairline);
  border-radius: var(--r-window);
  box-shadow: var(--shadow-float), var(--inner-highlight);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
}
:root { --nav: 52px; }
.brand img { width: 24px; height: 24px; border-radius: 6px; }
@media (max-width: 1039px) { .nav-panel { background: var(--glass-docked); border: 1px solid var(--hairline); border-radius: var(--r-panel); } }
.nav-toggle { border-radius: var(--r-button); border-color: var(--hairline); }
.nav-panel a { border-radius: var(--r-button); color: var(--text2); font-size: 0.82rem; font-weight: 500; }
.nav-panel a:hover { background: rgba(255, 255, 255, 0.06); color: var(--text1); }

/* Buttons: 6 px radius, single accent */
.btn { border-radius: var(--r-button); min-height: 40px; font-size: 0.9rem; font-weight: 600; letter-spacing: 0; transition: background-color 0.08s, border-color 0.08s, color 0.08s; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-primary:active { background: var(--accent-pressed); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--strong); color: var(--text1); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--strong); }
.btn-ghost:active { background: rgba(255, 255, 255, 0.10); }
.nav-panel a.btn-primary, .nav-panel a.btn-primary:hover { color: var(--on-accent); }

/* Hero */
.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--display); font-weight: 700; letter-spacing: 0.02em; }
.wordmark img { width: 1.25em; height: 1.25em; border-radius: 22%; box-shadow: var(--shadow-float); }
.pulse { background: var(--success); box-shadow: 0 0 0 4px rgba(52, 199, 123, 0.18); }
.stage3d { border-radius: var(--r-window); border: 1px solid var(--hairline); background: var(--viewport); box-shadow: var(--inner-highlight); }
.stage3d::after {
  background-image:
    linear-gradient(#22262D 1px, transparent 1px),
    linear-gradient(90deg, #22262D 1px, transparent 1px);
}
.stage-caption { font-family: var(--mono); color: var(--text3); }
.count-grid span { font-family: var(--mono); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text1); }
.count-grid small, .count-note { color: var(--text3); }

/* Viewer + segmented controls (workspace switcher treatment) */
.model-tabs, .overlay-toggles, .ws-switch {
  display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--hairline); border-radius: 9px;
}
.model-tabs button, .overlay-toggles button, .ws-switch button {
  min-height: 30px; padding: 0.25rem 0.75rem; border: 0; border-radius: var(--r-button);
  background: transparent; color: var(--text2); font: inherit; font-size: 0.78rem; font-weight: 500; cursor: pointer;
  transition: background-color 0.08s, color 0.08s;
}
.model-tabs button:hover, .overlay-toggles button:hover, .ws-switch button:hover { background: rgba(255, 255, 255, 0.06); color: var(--text1); }
.model-tabs button.is-on, .overlay-toggles button.is-on, .ws-switch button.is-on {
  background: rgba(255, 255, 255, 0.10); color: var(--text1); box-shadow: var(--inner-highlight);
}
.ws-switch { margin-bottom: 0.9rem; }
.ws-switch button { display: inline-flex; align-items: center; gap: 0.45rem; }
.ws-switch i { width: 6px; height: 6px; border-radius: 2px; background: var(--tag, var(--accent)); }
.viewer-frame, .cmp { border-radius: var(--r-panel); background: var(--viewport); border: 1px solid var(--hairline); }
.viewer-frame canvas, .viewer-poster { background: var(--viewport); }
.viewer-status, .cmp-tag { background: var(--glass-chip); border: 1px solid var(--hairline); border-radius: var(--r-chip); color: var(--text2); font-size: 0.72rem; }

/* Mac frames: unified 52 px toolbar look */
.mac { border-radius: var(--r-window); border: 1px solid var(--hairline); background: var(--viewport); }
.mac-top { background: var(--glass-toolbar); border-bottom: 1px solid var(--hairline); }
.mac-title { color: var(--text2); font-size: 0.78rem; font-weight: 500; }
.mac img { background:
    linear-gradient(#171A1F 1px, transparent 1px),
    linear-gradient(90deg, #171A1F 1px, transparent 1px), var(--viewport); }
.reel-btn { border-radius: var(--r-button); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--hairline); color: var(--text2); }
.reel-btn:hover { background: rgba(255, 255, 255, 0.06); color: var(--text1); }
.dot { background: var(--grey3); }
.dot.is-on { background: var(--accent); box-shadow: none; }

/* Data rows */
.specs li { border-radius: var(--r-panel); }
.slot { font-family: var(--mono); font-weight: 600; color: var(--text1); }
.reqs div { border-bottom-color: var(--hairline); }
.faq summary::after { color: var(--text3); }

/* Inputs: 5 px radius, focus ring */
input[type="email"], #print-form input, #print-form select, #print-form textarea {
  border-radius: var(--r-input) !important; border: 1px solid var(--strong) !important; background: rgba(0, 0, 0, 0.25) !important;
}
input[type="email"]:focus, #print-form input:focus, #print-form select:focus, #print-form textarea:focus {
  outline: none; border-color: var(--accent) !important; box-shadow: var(--focus-ring);
}
.estimate { color: var(--accent); font-family: var(--mono); font-size: 0.85rem; }
.footer { border-top: 1px solid var(--hairline); }

/* Drawing tools palette (spec icons, 24 px, text2 idle / accent active) */
.tool-palette { margin-top: 1rem; padding: 1.1rem; display: grid; gap: 0.9rem; }
.tool-palette-head .section-lead { font-size: 0.92rem; }
.tool-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.tool-grid li {
  display: grid; justify-items: center; gap: 0.35rem; padding: 0.65rem 0.25rem 0.55rem;
  border-radius: var(--r-rail); color: var(--text2); transition: background-color 0.08s, color 0.08s;
}
.tool-grid li svg { width: 24px; height: 24px; }
.tool-grid li span { font-size: 0.68rem; font-weight: 500; color: var(--text3); }
.tool-grid li:hover { background: var(--accent-subtle); color: var(--accent); }
.tool-grid li:hover span { color: var(--text1); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .section, .nav, .hero, .footer { background: var(--glass-docked); }
}
@media (prefers-contrast: more) {
  :root { --hairline: rgba(255, 255, 255, 0.16); --text2: #C3C8D1; }
}

.ws-switch button[data-tag="22c3ee"] { --tag: #22C3EE; }
.ws-switch button[data-tag="4ade80"] { --tag: #4ADE80; }
.ws-switch button[data-tag="60a5fa"] { --tag: #60A5FA; }
.ws-switch button[data-tag="a78bfa"] { --tag: #A78BFA; }
.ws-switch button[data-tag="e8c07a"] { --tag: #E8C07A; }
.ws-switch button[data-tag="f0564f"] { --tag: #F0564F; }

/* HB3D Studio feedback widget (restored 21 Nov 2026, Australia/Brisbane).
   These #hb3fb rules were in the 19 Nov deploy and were left out of the
   20 Nov redesign, so the chat button was unstyled and not floating. */
#hb3fb {
  --hb3fb-lift: 16px;
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  bottom: calc(var(--hb3fb-lift) + env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font: 500 0.95rem/1.45 var(--sans);
  transition: bottom 0.25s ease;
  -webkit-text-size-adjust: 100%;
}
#hb3fb *,
#hb3fb *::before,
#hb3fb *::after { box-sizing: border-box; }
#hb3fb .hb3fb-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  background: rgba(8, 16, 28, 0.88);
  color: var(--cyan);
  border-radius: 999px;
  padding: 0.55rem 0.9rem 0.55rem 0.75rem;
  font: 700 0.82rem/1 var(--sans);
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4), 0 0 18px rgba(122, 246, 255, 0.12);
  backdrop-filter: blur(10px);
}
#hb3fb .hb3fb-btn:hover,
#hb3fb.open .hb3fb-btn {
  background: rgba(12, 24, 40, 0.95);
  color: #fff;
  border-color: var(--cyan);
}
#hb3fb .hb3fb-btn svg { display: block; }
#hb3fb .hb3fb-panel {
  width: min(22.5rem, calc(100vw - 24px));
  max-height: min(32rem, calc(100dvh - var(--hb3fb-lift) - 90px));
  display: flex;
  flex-direction: column;
  background: rgba(6, 12, 22, 0.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(80, 180, 255, 0.1);
  overflow: hidden;
  backdrop-filter: blur(16px);
}
#hb3fb .hb3fb-panel[hidden] { display: none; }
#hb3fb .hb3fb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.75rem 0.7rem 1rem;
  background: linear-gradient(#132036, #0b1524);
  border-bottom: 1px solid rgba(122, 246, 255, 0.14);
  color: var(--ink);
  font: 700 0.9rem/1.2 var(--sans);
  letter-spacing: -0.02em;
}
#hb3fb .hb3fb-x {
  background: none;
  border: 0;
  color: var(--cyan);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
}
#hb3fb .hb3fb-log {
  flex: 1 1 auto;
  overflow: auto;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: rgba(3, 6, 12, 0.45);
  min-height: 4.4rem;
}
#hb3fb .hb3fb-msg {
  margin: 0;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  max-width: 92%;
  font-size: 0.9rem;
  white-space: pre-wrap;
  word-wrap: break-word;
}
#hb3fb .hb3fb-them {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(122, 246, 255, 0.14);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  color: var(--muted);
}
#hb3fb .hb3fb-me {
  background: rgba(122, 246, 255, 0.12);
  border: 1px solid rgba(122, 246, 255, 0.28);
  color: var(--ink);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
#hb3fb .hb3fb-ok {
  border-color: rgba(182, 240, 200, 0.35);
  background: rgba(80, 160, 110, 0.16);
  color: var(--ok);
  font-weight: 600;
}
#hb3fb .hb3fb-err {
  background: rgba(80, 20, 20, 0.45);
  border: 1px solid rgba(255, 180, 180, 0.35);
  color: var(--bad);
  align-self: stretch;
  max-width: none;
}
#hb3fb .hb3fb-form {
  padding: 0.7rem 0.8rem 0.85rem;
  border-top: 1px solid rgba(122, 246, 255, 0.12);
  background: rgba(6, 12, 22, 0.6);
  display: grid;
  gap: 0.5rem;
}
#hb3fb .hb3fb-fields {
  display: grid;
  gap: 0.45rem;
}
@media (min-width: 420px) {
  #hb3fb .hb3fb-fields { grid-template-columns: 1fr 1fr; }
}
#hb3fb .hb3fb-fields input,
#hb3fb .hb3fb-ta {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.4);
}
#hb3fb .hb3fb-ta {
  display: block;
  resize: vertical;
  min-height: 4.2rem;
  max-height: 11rem;
}
#hb3fb .hb3fb-fields input::placeholder,
#hb3fb .hb3fb-ta::placeholder { color: var(--faint); }
#hb3fb .hb3fb-fields input:focus,
#hb3fb .hb3fb-ta:focus {
  border-color: var(--cyan);
  outline: none;
  box-shadow: 0 0 0 3px rgba(122, 246, 255, 0.18);
}
#hb3fb .hb3fb-ctx {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font: 500 0.78rem/1.3 var(--sans);
  color: var(--faint);
  cursor: pointer;
}
#hb3fb .hb3fb-ctx input {
  margin: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--cyan);
}
#hb3fb .hb3fb-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
#hb3fb .hb3fb-cnt {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
  letter-spacing: 0.04em;
}
#hb3fb .hb3fb-send {
  background: var(--cyan);
  color: var(--fill-ink);
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font: 700 0.85rem/1 var(--sans);
  cursor: pointer;
}
#hb3fb .hb3fb-send:hover { background: #c8fbff; }
#hb3fb .hb3fb-send:disabled { opacity: 0.45; cursor: default; }
#hb3fb .hb3fb-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (max-width: 600px) {
  #hb3fb .hb3fb-lbl { display: none; }
  #hb3fb .hb3fb-btn { padding: 0.7rem; }
  #hb3fb.open .hb3fb-lbl { display: inline; }
  #hb3fb.open .hb3fb-btn { padding: 0.55rem 0.9rem 0.55rem 0.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  #hb3fb { transition: none; }
}
@media print { #hb3fb { display: none; } }
