/* Major changed section: dark robotics design system */
:root {
  --bg: #05080d;
  --bg-deep: #02040a;
  --bg-soft: #070b12;
  --panel: rgba(11, 18, 30, 0.72);
  --panel-strong: rgba(9, 16, 28, 0.92);
  --panel-hover: rgba(12, 27, 46, 0.88);
  --text: #f7fbff;
  --muted: rgba(221, 232, 244, 0.72);
  --faint: rgba(221, 232, 244, 0.44);
  --accent: #0ea5ff;
  --accent-2: #0094ff;
  --accent-soft: rgba(14, 165, 255, 0.16);
  --border: rgba(14, 165, 255, 0.22);
  --border-strong: rgba(14, 165, 255, 0.56);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
  --glow: 0 0 36px rgba(14, 165, 255, 0.24);
  --radius: 18px;
  --container: min(1180px, calc(100% - 2rem));
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --cursor-x: 50vw;
  --cursor-y: 50vh;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 75% 4%, rgba(14, 165, 255, 0.17), transparent 31rem),
    radial-gradient(circle at 14% 26%, rgba(0, 148, 255, 0.12), transparent 28rem),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 42%, #03060b 100%);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
}

@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body,
  a,
  button,
  input,
  textarea,
  select,
  summary,
  [role="button"] {
    cursor: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 3.25L18.75 12.4L12.45 13.85L9.1 20.4L4 3.25Z' fill='%230EA5FF' stroke='%23F7FBFF' stroke-width='1.45' stroke-linejoin='round'/%3E%3Cpath d='M10.95 13.35L15.2 11.95L6.2 6.35L10.95 13.35Z' fill='%23B9E9FF' fill-opacity='0.72'/%3E%3C/svg%3E") 4 3, auto;
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(14, 165, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 255, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 78%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 8, 13, 0.1), rgba(5, 8, 13, 0.72)),
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 7px);
}

.cursor-glow {
  position: fixed;
  left: var(--cursor-x);
  top: var(--cursor-y);
  z-index: 0;
  width: clamp(24rem, 48vw, 52rem);
  aspect-ratio: 1;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 255, 0.18) 0%, rgba(14, 165, 255, 0.08) 38%, transparent 68%);
  filter: blur(48px);
  opacity: 0.72;
  transform: translate(-50%, -50%);
  transition: left 140ms ease-out, top 140ms ease-out;
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--accent);
  color: #00101f;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Major changed section: premium glass navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 1rem clamp(1rem, 3vw, 2.5rem);
  background: linear-gradient(180deg, rgba(2, 4, 10, 0.86), rgba(2, 4, 10, 0));
}

.nav-shell {
  width: var(--container);
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
  padding: 0.48rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(5, 10, 18, 0.72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(20px);
}

.brand,
.nav-links,
.nav-github {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.65rem;
  padding: 0.55rem 0.9rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(14, 165, 255, 0.78), inset 0 0 10px rgba(14, 165, 255, 0.45);
}

.nav-links {
  gap: 0.2rem;
  color: var(--muted);
  font: 700 0.78rem/1 var(--mono);
}

.nav-links a,
.nav-github {
  padding: 0.72rem 0.9rem;
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.nav-links a:hover,
.nav-github:hover {
  color: var(--text);
  background: rgba(14, 165, 255, 0.13);
  box-shadow: inset 0 0 0 1px rgba(14, 165, 255, 0.26);
}

.nav-github {
  color: var(--accent);
  border: 1px solid rgba(14, 165, 255, 0.34);
  font: 800 0.78rem/1 var(--mono);
}

.section-rail {
  position: fixed;
  right: clamp(0.65rem, 1.8vw, 1.5rem);
  top: 50%;
  z-index: 8;
  display: grid;
  gap: 0.35rem;
  transform: translateY(-50%);
}

.section-rail::before {
  content: "";
  position: absolute;
  top: 0.72rem;
  bottom: 0.72rem;
  left: 0.45rem;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(14, 165, 255, 0.42), transparent);
}

.rail-link {
  position: relative;
  display: grid;
  grid-template-columns: 0.9rem auto;
  align-items: center;
  gap: 0.55rem;
  min-height: 1.65rem;
  color: var(--faint);
  font: 800 0.62rem/1 var(--mono);
  text-transform: uppercase;
}

.rail-dot {
  position: relative;
  z-index: 1;
  width: 0.58rem;
  height: 0.58rem;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: rgba(5, 8, 13, 0.92);
  box-shadow: 0 0 0 3px rgba(5, 8, 13, 0.78);
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.rail-label {
  opacity: 0;
  transform: translateX(0.35rem);
  transition: opacity 180ms ease, transform 180ms ease, color 180ms ease;
}

.section-rail:hover .rail-label,
.rail-link.is-active .rail-label {
  opacity: 1;
  transform: translateX(0);
}

.rail-link:hover,
.rail-link.is-active {
  color: var(--accent);
}

.rail-link:hover .rail-dot,
.rail-link.is-active .rail-dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(5, 8, 13, 0.82), 0 0 18px rgba(14, 165, 255, 0.74);
  transform: scale(1.2);
}

.section,
.site-footer {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: clamp(4.8rem, 8vw, 7.4rem) 0;
}

/* Major changed section: HeroSection component */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.58fr) minmax(280px, 0.42fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  overflow: hidden;
  margin: 0;
  padding: clamp(7.6rem, 12vh, 9.2rem) max(clamp(1.5rem, 4vw, 4rem), calc((100vw - 1180px) / 2)) clamp(2rem, 5vh, 3rem);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(2, 4, 10, 0.96) 0%, rgba(2, 4, 10, 0.68) 34%, rgba(2, 4, 10, 0.04) 64%, rgba(2, 4, 10, 0.18) 100%),
    linear-gradient(180deg, rgba(2, 4, 10, 0.18) 0%, rgba(2, 4, 10, 0.04) 58%, rgba(2, 4, 10, 0.72) 100%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 43rem;
}

.brand-label,
.eyebrow,
.tech-label,
.panel-topline {
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.brand-label::before,
.eyebrow::before {
  content: "";
  width: 1.8rem;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

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

h1 {
  max-width: 13ch;
  margin-bottom: 1.25rem;
  font-size: clamp(3rem, 5.2vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h1 span,
.gradient-text {
  color: transparent;
  background: linear-gradient(90deg, #b9e9ff 0%, var(--accent) 42%, #4fd4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

h2 {
  max-width: 850px;
  margin-bottom: 0;
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.08rem;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 31rem;
  margin-bottom: 0.9rem;
  color: var(--text);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  font-weight: 700;
}

.hero-brief,
.section-heading p,
.overview-console p,
.feature-copy p,
.site-footer p {
  color: var(--muted);
}

.hero-brief {
  max-width: 33rem;
  margin-bottom: 2rem;
  font-size: 1rem;
}

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

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0.75rem 1.05rem;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #00101f;
  box-shadow: 0 14px 40px rgba(14, 165, 255, 0.28);
}

.button-secondary {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(14, 165, 255, 0.12);
  box-shadow: inset 0 0 24px rgba(14, 165, 255, 0.08);
}

.button-ghost {
  border-color: rgba(221, 232, 244, 0.16);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

.button-secondary:hover,
.button-ghost:hover {
  border-color: var(--border-strong);
  color: var(--text);
  box-shadow: var(--glow);
}

.hero-feature-bar {
  position: relative;
  z-index: 2;
  grid-column: 1 / 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: min(100%, 45rem);
  margin-top: clamp(3rem, 6vw, 4.4rem);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.hero-feature-item {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0.55rem;
  min-height: 0;
  padding: 0 1rem;
  border-right: 1px solid rgba(14, 165, 255, 0.16);
  text-align: center;
}

.hero-feature-item:last-child {
  border-right: 0;
}

.hero-feature-item .feature-icon {
  margin: 0 0 0.25rem;
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-feature-item h3 {
  margin-bottom: 0.2rem;
  font-size: 0.78rem;
}

.hero-feature-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.video-card,
.hero-shot-card,
.panel-surface,
.overview-hardware,
.overview-console,
.method-panel,
.metrics-panel,
.team-card,
.feature-copy {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 45%),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.panel-surface::before,
.team-card::before,
.feature-copy::before,
.overview-hardware::before,
.overview-console::before,
.method-panel::before,
.metrics-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(14, 165, 255, 0.16), transparent 32%, transparent 70%, rgba(255, 255, 255, 0.06));
  opacity: 0.6;
}

.panel-surface:hover,
.overview-hardware:hover,
.overview-console:hover,
.metrics-panel:hover,
.team-card:hover,
.method-panel:hover,
.feature-copy:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--panel-hover);
  box-shadow: var(--shadow), var(--glow);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  margin-bottom: 2rem;
  border: 1px solid rgba(14, 165, 255, 0.34);
  border-radius: 16px;
  color: var(--accent);
  background: rgba(14, 165, 255, 0.1);
  box-shadow: inset 0 0 24px rgba(14, 165, 255, 0.1);
}

.feature-icon svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-heading {
  margin-bottom: clamp(1.9rem, 4vw, 3.2rem);
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.44fr);
  gap: 1.5rem;
  align-items: end;
}

.split-heading > p {
  margin-bottom: 0;
}

.overview {
  padding-top: clamp(4rem, 7vw, 6rem);
}

.overview-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}

.overview-hardware {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: stretch;
  padding: clamp(1rem, 2.5vw, 1.4rem);
}

.hardware-media,
.hardware-specs {
  position: relative;
  z-index: 1;
}

.hardware-media {
  position: relative;
  display: grid;
  place-items: center;
  gap: 0.85rem;
  min-height: 360px;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 74%, rgba(14, 165, 255, 0.22), transparent 38%),
    radial-gradient(circle at 50% 35%, rgba(247, 251, 255, 0.08), transparent 30%),
    linear-gradient(rgba(14, 165, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(2, 14, 26, 0.96), #02040a);
  background-size: auto, auto, 34px 34px, 34px 34px, auto;
}

.hardware-media::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 3.2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(14, 165, 255, 0.7), transparent);
  box-shadow:
    0 0 32px rgba(14, 165, 255, 0.46),
    0 -34px 90px rgba(14, 165, 255, 0.14);
}

.hardware-media::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 2.2rem;
  height: 18%;
  border: 1px solid rgba(14, 165, 255, 0.22);
  border-top: 0;
  transform: perspective(420px) rotateX(58deg);
  transform-origin: bottom;
  background:
    linear-gradient(rgba(14, 165, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 255, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.7;
}

.hardware-media img {
  position: relative;
  z-index: 1;
  width: min(82%, 390px);
  height: auto;
  max-height: 440px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 30px 36px rgba(0, 0, 0, 0.62)) drop-shadow(0 0 26px rgba(14, 165, 255, 0.18));
}

.hardware-media p {
  position: absolute;
  z-index: 2;
  left: 1rem;
  right: 1rem;
  bottom: 0.9rem;
  margin: 0;
  color: var(--text);
  font: 900 0.72rem/1.35 var(--mono);
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.82);
}

.hardware-specs {
  display: grid;
  align-content: center;
  gap: 0;
}

.hardware-specs div {
  display: grid;
  grid-template-columns: minmax(110px, 0.34fr) minmax(0, 0.66fr);
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(14, 165, 255, 0.2);
}

.hardware-specs div:first-child {
  border-top: 1px solid rgba(14, 165, 255, 0.2);
}

.hardware-specs dt {
  color: var(--accent);
  font: 900 0.68rem/1.25 var(--mono);
  text-transform: uppercase;
}

.hardware-specs dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.overview-console {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 520px;
  padding: clamp(1rem, 2vw, 1.35rem);
}

.overview-console-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(14, 165, 255, 0.18);
}

.overview-console-header .tech-label {
  margin-bottom: 0;
}

.console-status {
  color: var(--faint);
  font: 800 0.72rem/1 var(--mono);
  text-transform: uppercase;
}

.overview-flow {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(90px, auto));
  gap: 1rem 1.25rem;
  align-content: center;
  min-height: 380px;
}

.pipeline-arrows {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.pipeline-arrows path {
  fill: none;
  stroke: rgba(221, 232, 244, 0.58);
  stroke-width: 0.65;
  vector-effect: non-scaling-stroke;
  marker-end: url("#pipeline-arrowhead");
}

.pipeline-arrows marker path {
  fill: rgba(221, 232, 244, 0.78);
}

.pipeline-node {
  --pipeline-y: 0px;
  position: relative;
  z-index: 2;
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.95rem;
  border: 1px solid rgba(14, 165, 255, 0.16);
  border-radius: 14px;
  background: rgba(2, 4, 10, 0.94);
  text-align: center;
  transform: translateY(var(--pipeline-y));
}

.pipeline-node h3 {
  margin-bottom: 0.35rem;
  font-size: 0.98rem;
}

.pipeline-node p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.pipeline-primary {
  border-color: var(--border-strong);
  background: linear-gradient(180deg, rgba(14, 165, 255, 0.18), rgba(2, 4, 10, 0.96));
  box-shadow: inset 0 0 36px rgba(14, 165, 255, 0.08);
}

.node-camera {
  grid-column: 1;
  grid-row: 1;
}

.node-odom {
  grid-column: 2;
  grid-row: 1;
}

.node-slam {
  grid-column: 3;
  grid-row: 1;
}

.node-nav {
  grid-column: 4;
  grid-row: 1;
}

.node-cloud {
  grid-column: 1;
  grid-row: 2;
}

.node-coverage {
  grid-column: 4;
  grid-row: 2;
}

.node-motors {
  grid-column: 4;
  grid-row: 3;
  --pipeline-y: 0.85rem;
}

.methods-layout {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

.method-panel {
  min-height: 100%;
}

.method-stack {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 1rem;
}

.method-stack span {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(14, 165, 255, 0.18);
  border-radius: 8px;
  color: var(--text);
  background: rgba(2, 4, 10, 0.32);
  font: 900 0.82rem/1.2 var(--mono);
  text-align: center;
  text-transform: uppercase;
}

.method-steps {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 1rem;
  list-style: none;
}

.method-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(14, 165, 255, 0.16);
  border-radius: 12px;
  background: rgba(2, 4, 10, 0.28);
}

.method-steps li > span {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid rgba(14, 165, 255, 0.3);
  border-radius: 50%;
  color: var(--accent);
  background: rgba(14, 165, 255, 0.1);
  font: 900 0.72rem/1 var(--mono);
}

.method-steps h3 {
  margin-bottom: 0.35rem;
}

.method-steps p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.metrics-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  padding: clamp(1rem, 2.5vw, 1.55rem);
}

.slam-comparison,
.metrics-summary {
  position: relative;
  z-index: 1;
}

.slam-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  order: 2;
  gap: 1.1rem;
  width: 100%;
  justify-self: center;
}

.slam-frame {
  overflow: hidden;
  border: 1px solid rgba(14, 165, 255, 0.18);
  border-radius: 12px;
  background: rgba(2, 4, 10, 0.34);
}

.slam-frame img {
  width: 100%;
  aspect-ratio: 1238 / 748;
  object-fit: cover;
  background: #000;
}

.slam-frame figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  color: var(--muted);
  border-top: 1px solid rgba(14, 165, 255, 0.14);
  font-size: 0.88rem;
}

.slam-frame figcaption span {
  color: var(--accent);
  font: 900 0.68rem/1 var(--mono);
  text-transform: uppercase;
}

.metrics-summary {
  order: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid rgba(14, 165, 255, 0.18);
  border-radius: 12px;
  background: rgba(2, 4, 10, 0.28);
}

.metrics-summary p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.tech-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.7rem;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 900;
}

.demo-feature {
  position: relative;
}

.demo-feature::before {
  content: "";
  position: absolute;
  inset: 1rem -5rem auto auto;
  width: 18rem;
  aspect-ratio: 1;
  border: 1px solid rgba(14, 165, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.52;
}

.demo-switch {
  display: inline-flex;
  width: fit-content;
  gap: 0.35rem;
  justify-self: end;
  padding: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(2, 4, 10, 0.46);
  box-shadow: inset 0 0 24px rgba(14, 165, 255, 0.08);
}

.demo-tab {
  min-height: 2.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  color: var(--muted);
  background: transparent;
  font: 900 0.68rem/1 var(--mono);
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.demo-tab:hover,
.demo-tab.is-active {
  color: var(--text);
  border-color: rgba(14, 165, 255, 0.42);
  background: rgba(14, 165, 255, 0.14);
  box-shadow: 0 0 24px rgba(14, 165, 255, 0.16);
}

.demo-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.demo-panel[hidden] {
  display: none;
}

.demo-panel-heading {
  margin-bottom: 1rem;
}

.demo-panel-heading h3 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(1.85rem, 3.8vw, 3.35rem);
  line-height: 0.98;
}

.feature-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  gap: 1rem;
  align-items: stretch;
}

.feature-copy-wide {
  grid-column: 1 / -1;
}

.costmap-feature .feature-panel {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.38fr);
  align-items: stretch;
  gap: clamp(1.25rem, 2.4vw, 2rem);
}

.costmap-feature .feature-media-robot {
  align-self: stretch;
  width: min(100%, 340px);
  min-height: 0;
  aspect-ratio: auto;
  justify-self: end;
}

.feature-panel-reverse {
  grid-template-columns: minmax(280px, 0.76fr) minmax(0, 1.24fr);
}

.coverage-feature .feature-panel {
  align-items: stretch;
}

.feature-panel-reverse .feature-media {
  order: 2;
}

.feature-media {
  min-width: 0;
  min-height: 420px;
  display: grid;
  place-items: center;
  padding: 0.75rem;
}

.feature-media-wide {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.feature-media-full {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.noninteractive-media,
.noninteractive-media video {
  pointer-events: none;
}

.costmap-feature .feature-panel > .feature-media:not(.feature-media-robot) {
  aspect-ratio: 1208 / 844;
  min-height: 0;
}

.feature-media-robot {
  width: min(90%, 330px);
  min-height: 0;
  aspect-ratio: 9 / 15;
  justify-self: center;
}

.coverage-feature .feature-media {
  margin-top: 0;
}

.feature-media video,
.feature-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  background: #000;
}

.feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.feature-copy h3 {
  margin-bottom: 0.9rem;
  font-size: clamp(1.85rem, 3.8vw, 3.35rem);
  line-height: 0.98;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

.stats-grid div {
  display: grid;
  gap: 0.3rem;
  padding: 0.9rem;
  border: 1px solid rgba(14, 165, 255, 0.16);
  border-radius: 14px;
  background: rgba(14, 165, 255, 0.06);
}

.stats-grid dt {
  color: var(--accent);
  font: 800 0.7rem/1.3 var(--mono);
  text-transform: uppercase;
}

.stats-grid dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.panel-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.95rem;
  border-bottom: 1px solid rgba(14, 165, 255, 0.18);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 800;
}

.video-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
  background: linear-gradient(135deg, rgba(14, 165, 255, 0.06), transparent 45%), #02040a;
}

.video-frame video,
.video-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.media-fallback {
  position: absolute;
  inset: auto 1rem 1rem;
  z-index: 3;
  border: 1px dashed rgba(14, 165, 255, 0.36);
  border-radius: 12px;
  background: rgba(2, 4, 10, 0.82);
  color: var(--faint);
  padding: 0.65rem;
  text-align: center;
  font: 700 0.72rem/1.4 var(--mono);
  pointer-events: none;
}

.media-fallback[hidden] {
  display: none;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 0.5fr));
  gap: 0.9rem;
  justify-content: center;
}

.team-card {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.6rem);
  text-align: center;
}

.team-grid .team-card {
  padding: clamp(0.9rem, 2vw, 1.2rem);
}

.team-card img {
  position: relative;
  z-index: 1;
  width: min(100%, 220px);
  aspect-ratio: 1;
  object-fit: contain;
}

.team-card span {
  position: relative;
  z-index: 1;
  color: var(--accent);
  font-weight: 900;
}

.supervisor-row {
  display: flex;
  justify-content: center;
  margin-top: 0.9rem;
}

.supervisor-card {
  width: min(100%, 720px);
  min-height: 220px;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.38fr);
  align-items: center;
  justify-items: stretch;
  padding: clamp(1.25rem, 3vw, 2rem);
  text-align: left;
}

.supervisor-card img {
  width: min(100%, 270px);
  justify-self: end;
}

.supervisor-details {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
}

.supervisor-card h3 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2.2rem 0 3.4rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.site-footer strong {
  color: var(--text);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  font: 800 0.75rem/1 var(--mono);
}

.footer-github {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.62rem 0.78rem;
  border: 1px solid rgba(14, 165, 255, 0.28);
  border-radius: 999px;
  color: var(--accent);
  line-height: 1;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.footer-github svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  fill: currentColor;
}

.footer-github:hover {
  border-color: var(--border-strong);
  background: rgba(14, 165, 255, 0.1);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

@media (max-width: 1040px) {
  .section-rail {
    display: none;
  }

  .hero-section,
  .feature-panel,
  .feature-panel-reverse,
  .overview-hardware,
  .metrics-panel,
  .methods-layout,
  .split-heading {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    padding-top: 8.5rem;
  }

  h1 {
    max-width: 12ch;
  }

  .hero-bg {
    object-position: 62% center;
  }

  .hero-feature-bar {
    grid-column: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1rem;
  }

  .hero-feature-item:nth-child(2) {
    border-right: 0;
  }

  .hero-feature-item:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(14, 165, 255, 0.16);
  }

  .feature-panel-reverse .feature-media {
    order: 0;
  }

  .demo-switch {
    justify-self: start;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-console {
    grid-column: 1 / -1;
  }

  .hardware-media {
    min-height: 320px;
  }

  .overview-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    min-height: 0;
  }

  .method-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pipeline-arrows {
    display: none;
  }

  .pipeline-node,
  .node-camera,
  .node-odom,
  .node-slam,
  .node-nav,
  .node-cloud,
  .node-coverage,
  .node-motors {
    grid-column: auto;
    grid-row: auto;
  }

  .feature-media {
    min-height: 320px;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 0.65rem;
  }

  .nav-shell {
    align-items: stretch;
    flex-wrap: wrap;
    border-radius: 24px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .nav-links a {
    flex: 1;
    text-align: center;
    padding-inline: 0.55rem;
  }

  .nav-github {
    padding-inline: 0.75rem;
  }

  .hero-section {
    padding: 9.5rem 1rem 1rem;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(5, 8, 13, 0.96) 0%, rgba(5, 8, 13, 0.86) 45%, rgba(5, 8, 13, 0.98) 100%),
      linear-gradient(90deg, rgba(5, 8, 13, 0.92), rgba(5, 8, 13, 0.18)),
      radial-gradient(circle at 70% 45%, rgba(14, 165, 255, 0.2), transparent 24rem);
  }

  .hero-bg {
    object-position: 64% center;
  }

  .hero-actions,
  .overview-layout,
  .overview-flow,
  .hardware-specs div,
  .method-stack,
  .method-steps li,
  .team-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .demo-switch {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .button {
    width: 100%;
  }

  .hero-feature-bar {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .hero-feature-item,
  .hero-feature-item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid rgba(14, 165, 255, 0.16);
  }

  .hero-feature-item:last-child {
    border-bottom: 0;
  }

  .overview-console {
    min-height: 0;
  }

  .slam-comparison {
    grid-template-columns: 1fr;
  }

  .method-steps li {
    gap: 0.65rem;
  }

  .feature-media-robot {
    width: 100%;
  }

  .coverage-feature .feature-media {
    margin-top: 0;
  }

  .supervisor-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .supervisor-card img {
    justify-self: center;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
