:root {
  --navy: #14231a;
  --navy-soft: #1b3323;
  --blue: #2d8a2d;
  --blue-bright: #34a734;
  --blue-pale: #eaf7ea;
  --bg: #f4f7f4;
  --card: #ffffff;
  --text: #182018;
  --muted: #5c6a5c;
  --border: #e3e8ef;
  --red: #d64545;
  --green: #1f9e78;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(17, 23, 52, 0.06);
  --shadow-lg: 0 12px 40px rgba(17, 23, 52, 0.12);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; color: var(--muted); }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-bright); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-pale);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue); color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Robot page switching ---------- */
.robot-page { display: none; }
.robot-page.active { display: block; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: stretch;
}
.site-header .wrap.header-inner {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  gap: 32px;
}
.brand { flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: 0 28px; }
.brand img { height: 44px; width: auto; display: block; }
.brand a { display: flex; align-items: center; }
.brand-divider { width: 1px; height: 22px; background: var(--border); }
.brand-suffix {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.shop-block {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 28px;
  background: #2d8a2d;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.15s ease;
}
.shop-block:hover { background: #256e25; color: #fff; }
.robot-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  padding: 5px;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.robot-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  padding: 9px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  cursor: pointer;
  position: relative;
}
.robot-tab.active { background: var(--navy); color: #fff; }
.robot-tab .soon-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--blue-pale);
  color: var(--blue);
  padding: 2px 6px;
  border-radius: 999px;
  white-space: nowrap;
}
.robot-tab.active .soon-badge { background: rgba(52,167,52,0.2); color: var(--blue-bright); }
.robot-tabs-wrap {
  position: relative;
  max-width: 42vw;
  min-width: 0;
}
.robot-tabs-wrap::before, .robot-tabs-wrap::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 22px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.robot-tabs-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg) 0%, transparent 100%); }
.robot-tabs-wrap::after { right: 0; background: linear-gradient(270deg, var(--bg) 0%, transparent 100%); }
.robot-tabs-wrap.can-scroll-left::before { opacity: 1; }
.robot-tabs-wrap.can-scroll-right::after { opacity: 1; }

.robot-tabs.robot-tabs-scroll {
  overflow-x: auto;
  flex-wrap: nowrap;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  cursor: grab;
}
.robot-tabs.robot-tabs-scroll:active { cursor: grabbing; }
.robot-tabs.robot-tabs-scroll .robot-tab {
  flex-shrink: 0;
  white-space: nowrap;
  text-decoration: none;
}
.robot-tabs.robot-tabs-scroll::-webkit-scrollbar { height: 6px; }
.robot-tabs.robot-tabs-scroll::-webkit-scrollbar-track { background: transparent; }
.robot-tabs.robot-tabs-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
  transition: background 0.15s ease;
}
.robot-tabs.robot-tabs-scroll:hover::-webkit-scrollbar-thumb,
.robot-tabs.robot-tabs-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--blue-bright);
}
@media (max-width: 900px) {
  .robot-tabs-wrap { max-width: 100%; }
}
.header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; white-space: nowrap; }
.header-cta .btn { padding: 10px 16px; font-size: 0.85rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 8px 0 6px;
  background:
    radial-gradient(circle at 15% 20%, rgba(52,167,52,0.10), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(45,138,45,0.08), transparent 40%),
    linear-gradient(180deg, #0a150d 0%, var(--navy) 55%, #1b3323 100%);
  color: #fff;
  overflow: hidden;
}
.hero .wrap { position: relative; z-index: 2; max-width: none; padding: 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  gap: 40px;
  align-items: center;
}
.hero h1 { color: #fff; font-size: 2.6rem; margin-bottom: 18px; }
.hero h1 span { color: var(--blue-bright); }
.hero p.lead { color: #b9c2d9; font-size: 1.08rem; max-width: 46ch; }
.hero-tagline { color: #fff; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-weight: 700; font-size: 1.15rem; margin: 10px 0 18px; }
.hero-fit { color: #b9c2d9; font-size: 0.9rem; line-height: 1.5; margin: -8px 0 20px; max-width: 42ch; }
.hero-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.hero-spec { display: flex; flex-direction: column; gap: 2px; }
.hero-spec strong { color: #fff; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-weight: 700; font-size: 0.86rem; }
.hero-spec span { color: #8b96b8; font-size: 0.72rem; }
.hero .eyebrow { background: rgba(52,167,52,0.15); color: var(--blue-bright); }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-actions .btn-ghost { background: rgba(255,255,255,0.06); color: #fff; border-color: rgba(255,255,255,0.18); }
.hero-actions .btn-ghost:hover { border-color: var(--blue-bright); color: var(--blue-bright); }
.hero-actions .btn-primary { background: var(--blue-bright); color: var(--navy); }
.hero-actions .btn-primary:hover { background: #fff; }
.hero-media {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.12);
}
.hero-media img { width: 100%; }
/* ---------- Playground embedded in the hero ---------- */
/* Flat 3-column grid: text | canvas | controls. Text and controls share the
   same 1fr, so whatever they contain, they stay equal width — which puts the
   canvas column exactly on the page's horizontal center, at any viewport
   width, without hardcoding a pixel center. */
.hero-grid-3col {
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 32px;
}
.hero-text { min-width: 0; }
.playground-canvas-wrap.hero-playground-canvas {
  height: 420px;
  aspect-ratio: auto;
  min-width: 0;
  background: none;
  border: none;
  border-radius: 0;
}
.playground-controls.hero-playground-controls {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 20px 22px 22px;
  position: relative;
  min-width: 0;
  /* Fixed to match the canvas exactly — never grows/shrinks with tab content,
     so the hero's height stays constant no matter which joint group is open. */
  height: 420px;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* Reset floats top-right so the tabs row below gets the card's full width —
   otherwise 5 tab labels + a button never fit on one line. */
.hero-playground-controls .playground-controls-head { margin-bottom: 14px; flex-shrink: 0; padding-right: 76px; }
.hero-playground-controls .playground-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; min-width: 0; width: 100%; }
.hero-playground-controls .playground-tabs::-webkit-scrollbar { display: none; }
.hero-playground-controls .playground-tab { padding: 6px 6px; font-size: 0.68rem; white-space: nowrap; }
.hero-playground-controls .playground-tabs { gap: 2px; }
.hero-playground-controls .playground-reset {
  position: absolute;
  top: 18px;
  right: 20px;
  padding: 7px 13px;
  font-size: 0.78rem;
}
.hero-playground-controls .playground-sliders {
  overflow-y: auto;
  gap: 8px;
  padding-right: 6px;
  min-height: 0;
  flex: 1;
}
.hero-playground-controls .playground-slider-row { gap: 2px; }
.hero-playground-controls .playground-meta { margin-top: 8px; font-size: 0.68rem; flex-shrink: 0; }
.playground-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.playground-download:hover { color: var(--blue); border-color: var(--blue); }
.hero-playground-controls .playground-spinner { background: transparent; color: #b9c2d9; }

.specs-strip {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.specs-strip .wrap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.spec-item {
  padding: 22px 20px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.spec-item:last-child { border-right: none; }
.spec-item .val { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-weight: 700; color: var(--navy); font-size: 1.15rem; }
.spec-item .lbl { font-size: 0.74rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 3px; }

/* ---------- Section shell ---------- */
section.block { padding: 84px 0; }
section.block.tight { padding: 60px 0; }
.block-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.block-head h2 { font-size: 2rem; }
.block-head p { font-size: 1.02rem; }
.alt-bg { background: #fff; }
section.hero, section.block { scroll-margin-top: 128px; }
.sub-block-head { margin-top: 68px; }

/* ---------- Sub-nav ---------- */
.subnav {
  position: sticky;
  top: 72px;
  z-index: 90;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.subnav-inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav-link {
  flex-shrink: 0;
  padding: 13px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.subnav-link:hover { color: var(--navy); }
.subnav-link.active { color: var(--navy); border-bottom-color: var(--blue-bright); }

/* ---------- Startup Guide ---------- */
.startup-video-wrap { margin: 32px auto 8px; text-align: center; }
.startup-video {
  width: auto;
  max-width: 100%;
  height: 520px;
  max-height: 60vh;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: #000;
  display: block;
  margin: 0 auto;
}
.startup-video-caption { font-size: 0.82rem; color: var(--muted); margin-top: 10px; max-width: 520px; margin-left: auto; margin-right: auto; }
.startup-video-badge { display: inline-block; margin-bottom: 14px; }
.startup-flow { margin-bottom: 8px; }
.flow-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.flow-row.flow-sequence { grid-template-columns: 1fr; }
.flow-branch-3 { grid-template-columns: repeat(3, 1fr); }
.branch-card.gantry { border-top: 3px solid var(--blue-bright); }
.branch-card.supine { border-top: 3px solid #8a93a8; }
.branch-card.sitting { border-top: 3px solid #e8a916; }
.flow-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.flow-divider::before, .flow-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.startup-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.branch-card.native { border-top: 3px solid #8a93a8; }
.branch-card.illeon { border-top: 3px solid var(--blue-bright); }
.startup-step .step-num {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--blue);
  background: var(--blue-pale);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  border-radius: 8px;
  margin-bottom: 14px;
}
.startup-step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.startup-step p { font-size: 0.88rem; margin-bottom: 0; }
.startup-step code { background: var(--bg); padding: 1px 5px; border-radius: 4px; font-size: 0.85em; }

.startup-lower {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}
.quickref, .hw-facts {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow);
}
.quickref h3, .hw-facts h3 { font-size: 1rem; margin-bottom: 14px; }
.quickref-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.quickref-table th {
  text-align: left;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding: 0 8px 8px 0;
}
.quickref-table td { padding: 9px 8px 9px 0; border-bottom: 1px solid var(--border); color: var(--text); }
.quickref-table tr:last-child td { border-bottom: none; }
.hw-facts { display: flex; flex-direction: column; gap: 12px; }
.hw-facts h3 { margin-bottom: 2px; }
.hw-fact { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px dashed var(--border); padding-bottom: 10px; }
.hw-fact:last-child { border-bottom: none; padding-bottom: 0; }
.hw-fact .val { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-weight: 700; color: var(--navy); font-size: 0.98rem; }
.hw-fact .lbl { font-size: 0.78rem; color: var(--muted); text-align: right; }

.section-footnote { font-size: 0.86rem; color: var(--muted); margin-top: 28px; text-align: center; }

/* ---------- 3D Playground ---------- */
.playground-shell {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.playground-canvas-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 30% 20%, rgba(52,167,52,0.10), transparent 55%),
    var(--bg);
  border-right: 1px solid var(--border);
}
.playground-canvas-wrap canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.playground-spinner {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 600; color: var(--muted);
  background: var(--bg);
  pointer-events: none;
}
.playground-hint {
  position: absolute; left: 12px; bottom: 10px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.02em;
  color: var(--muted);
  background: rgba(255,255,255,0.85);
  padding: 4px 9px;
  border-radius: 999px;
  pointer-events: none;
}
.playground-controls { padding: 24px 26px 26px; display: flex; flex-direction: column; min-height: 0; }
.playground-controls-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.playground-tabs { display: flex; gap: 4px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 4px; }
.playground-tab { border: none; background: transparent; padding: 7px 12px; border-radius: 7px; font-size: 0.78rem; font-weight: 700; color: var(--muted); cursor: pointer; }
.playground-tab.active { background: var(--navy); color: #fff; }
.playground-reset { padding: 8px 14px; font-size: 0.8rem; }
.playground-sliders { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.playground-slider-row { display: flex; flex-direction: column; gap: 6px; }
.playground-slider-label { display: flex; justify-content: space-between; font-size: 0.82rem; font-weight: 600; color: var(--text); }
.playground-slider-val { color: var(--blue); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-weight: 700; font-size: 0.78rem; }
.playground-slider-row input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: var(--border);
  outline: none;
}
.playground-slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--blue-bright);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(17,23,52,0.3);
  cursor: pointer;
}
.playground-slider-row input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--blue-bright);
  border: 2px solid #fff;
  cursor: pointer;
}
.playground-meta { margin-top: 16px; font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.playground-meta a { color: var(--blue); text-decoration: underline; }
.hero-playground-controls .playground-meta a { color: var(--blue-bright); }

/* ---------- Applications: showcase gallery ---------- */
.showcase-grid { column-count: 3; column-gap: 16px; margin-bottom: 28px; }
.showcase-item {
  break-inside: avoid;
  margin: 0 0 16px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.showcase-item img { width: 100%; display: block; }
.showcase-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 12px 9px;
  background: linear-gradient(to top, rgba(10,14,26,0.82), rgba(10,14,26,0));
  color: #fff;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
@media (max-width: 900px) { .showcase-grid { column-count: 2; } }
@media (max-width: 640px) { .showcase-grid { column-count: 1; } }
.cap-grid.usecase-grid { grid-template-columns: repeat(2, 1fr); margin-bottom: 24px; }

/* ---------- Applications: spotlight ---------- */
.app-spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-bottom: 20px;
}
.app-spotlight-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-spotlight-copy { padding: 8px 36px 8px 0; }
.app-spotlight-copy h3 { font-size: 1.4rem; margin: 12px 0 12px; }
.app-spotlight-copy p { font-size: 0.98rem; }

/* ---------- Applications: method flow ---------- */
.method-flow {
  display: flex;
  align-items: stretch;
  gap: 14px;
  margin-bottom: 22px;
}
.method-step {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.method-step h4 { font-size: 1rem; margin-bottom: 8px; }
.method-step p { font-size: 0.88rem; margin-bottom: 0; }
.method-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border);
  font-size: 1.6rem;
  width: 20px;
}
.method-then {
  text-align: center;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 22px;
  font-size: 0.98rem;
}
.method-branches .cap-card { border-top: 3px solid var(--border); }
.method-branches .branch-classical { border-top-color: #2d8a2d; }
.method-branches .branch-il { border-top-color: #34a734; }
.method-branches .branch-rl { border-top-color: #1f9e78; }
.method-branches .cap-card h3 { font-size: 1.05rem; }

/* ---------- Support ---------- */
.support-ladder {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.support-tier {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  text-align: center;
}
.tier-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
}
.tier-num.tier-1 { background: var(--green); }
.tier-num.tier-2 { background: #e8a916; }
.tier-num.tier-3 { background: var(--navy); }
.support-tier h3 { font-size: 1.05rem; margin-bottom: 10px; }
.support-tier p { font-size: 0.9rem; margin-bottom: 0; }

/* ---------- Capabilities grid ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cap-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cap-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cap-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--blue-pale);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
}
.cap-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.cap-card p { font-size: 0.92rem; margin-bottom: 0; }
.tag-row { margin-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 999px;
}

/* ---------- Interface tabs ---------- */
.iface-shell {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.iface-tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 14px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.iface-tab {
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 9px 14px;
  border-radius: 8px;
  cursor: pointer;
}
.iface-tab.active { background: var(--navy); color: #fff; }
.iface-panel { display: none; }
.iface-panel.active { display: block; }
.iface-media { background: #0a150d; }
.iface-media img { width: 100%; display: block; }
.iface-copy { padding: 28px 32px 32px; }
.iface-copy h3 { font-size: 1.3rem; margin-bottom: 10px; }
.iface-copy p { font-size: 0.98rem; }
.iface-copy ul { margin: 14px 0 0; padding-left: 20px; color: var(--muted); font-size: 0.94rem; }
.iface-copy li { margin-bottom: 6px; }

/* ---------- Teleoperation ---------- */
.teleop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.teleop-grid.teleop-grid-single { grid-template-columns: minmax(0, 340px); justify-content: center; }
.teleop-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.teleop-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: #f0f4f0;
  border-bottom: 1px solid var(--border);
}
.teleop-body { padding: 22px 24px 26px; }
.teleop-body h3 { font-size: 1.05rem; margin: 10px 0 8px; }
.teleop-body p { font-size: 0.9rem; }
.status-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.status-badge.available { background: #e7f6ee; color: var(--green); }
.status-badge.dev { background: #fff3d6; color: #b8790f; }
.status-badge.info { background: var(--blue-pale); color: var(--blue); }
.support-tier .status-badge, .branch-card .status-badge { margin-bottom: 12px; }

/* ---------- Downloads ---------- */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.dl-grid.dl-grid-single { grid-template-columns: minmax(0, 420px); justify-content: center; }
.dl-grid.dl-grid-two { grid-template-columns: repeat(2, 1fr); }
.dl-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.dl-card .dl-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
  background: var(--navy);
  color: #fff;
}
.dl-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.dl-card p { font-size: 0.9rem; flex-grow: 1; }
.dl-card .dl-meta { font-size: 0.78rem; color: var(--muted); margin-bottom: 14px; }
.dl-card.notice { background: #fff8e8; border-color: #f0dfa8; }
.dl-card.notice .dl-icon { background: #e8a916; }
.dl-card.info { background: var(--blue-pale); border-color: #cfe6fa; }
.dl-card.info .dl-icon { background: var(--blue); }
.dl-card.dl-card-wide { grid-column: 1 / -1; }
.dl-dropdown-row { display: flex; gap: 10px; flex-wrap: wrap; }
.dl-select {
  flex: 1 1 260px;
  min-width: 0;
  padding: 0 14px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.86rem;
}
.dl-dropdown-row .btn { flex: 0 0 auto; }

/* ---------- Contact / CTA ---------- */
.cta {
  background: linear-gradient(135deg, var(--navy), #1c2b54);
  border-radius: 22px;
  padding: 56px;
  text-align: center;
  color: #fff;
}
.cta h2 { color: #fff; }
.cta p { color: #b9c2d9; max-width: 52ch; margin-left: auto; margin-right: auto; }
.cta .btn-primary { background: var(--blue-bright); color: var(--navy); margin-top: 8px; }
.cta .btn-primary:hover { background: #fff; }

/* ---------- Coming soon pages ---------- */
.coming-soon {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(52,167,52,0.08), transparent 55%),
    var(--bg);
}
.coming-soon .cs-inner { max-width: 480px; }
.coming-soon .cs-badge {
  width: 72px; height: 72px;
  margin: 0 auto 24px;
  border-radius: 18px;
  background: var(--navy);
  color: var(--blue-bright);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
}
.coming-soon h2 { font-size: 1.8rem; }
.coming-soon .eyebrow { background: var(--blue-pale); }
.coming-soon .cs-inner-wide { max-width: 620px; }
.coming-soon .cs-description { font-size: 1.02rem; color: var(--text); }
.coming-soon .cs-note {
  font-size: 0.86rem;
  padding-top: 18px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #b9c2d9;
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-grid a { color: #b9c2d9; display: block; margin-bottom: 8px; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--blue-bright); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom .legal-links { display: flex; gap: 18px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-brand img { height: 24px; }
.footer-wordmark {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  color: #fff;
}
.footer-wordmark span { color: var(--blue-bright); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .dl-grid { grid-template-columns: 1fr; }
  .teleop-grid { grid-template-columns: 1fr; }
  .specs-strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .spec-item:nth-child(2n) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .startup-lower { grid-template-columns: 1fr; }
  .app-spotlight { grid-template-columns: 1fr; }
  .app-spotlight-media img { max-height: 320px; }
  .app-spotlight-copy { padding: 0 28px 28px; }
  .method-flow { flex-direction: column; }
  .method-arrow { transform: rotate(90deg); width: auto; height: 20px; }
  .method-branches { grid-template-columns: 1fr; }
  .support-ladder { grid-template-columns: 1fr; }
  .playground-shell { grid-template-columns: 1fr; }
  .playground-canvas-wrap { border-right: none; border-bottom: 1px solid var(--border); aspect-ratio: 4 / 3; }
  .hero-grid-3col { grid-template-columns: 1fr; }
  .hero-playground-canvas { height: 300px; }
  /* Stacked on mobile — no need to lock controls to the canvas height. */
  .hero-playground-controls { height: auto; overflow: visible; }
  .hero-playground-controls .playground-sliders { max-height: 300px; }
  .hero-playground-controls .playground-tabs { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .site-header { flex-direction: column; }
  .site-header .wrap.header-inner { height: auto; flex-wrap: wrap; padding: 12px 16px; gap: 12px; }
  .robot-tabs { order: 3; width: 100%; justify-content: space-between; }
  .header-cta { display: none; }
  .brand-suffix { display: none; }
  .shop-block { height: 40px; padding: 0 16px; }
  .subnav { position: static; }
  section.hero, section.block { scroll-margin-top: 176px; }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 1.9rem; }
  .cap-grid { grid-template-columns: 1fr; }
  .flow-row { grid-template-columns: 1fr; }
  .iface-copy { padding: 22px; }
  .cta { padding: 36px 22px; }
}
