/* ==========================================================================
   GLORY YUZHI ROBOTICS · 格罗瑞予智
   Art Direction: Aerospace Titanium, Brushed Gunmetal & International Signal Orange
   Zero Neon-Green "AI Slop" — Pure Hardware Industrial Precision
   ========================================================================== */

:root {
  /* Neutral Carbon & Machined Gunmetal Surfaces (75% Dominant) */
  --surface-0: oklch(0.142 0.007 260);          /* #090B0E Pure Matte Carbon */
  --surface-1: oklch(0.182 0.009 260);          /* #11141B Anodized Gunmetal */
  --surface-2: oklch(0.218 0.011 260);          /* #171B24 Machined Slate */
  --surface-glass: oklch(0.16 0.009 260 / 0.90);
  --surface-hud: oklch(0.145 0.009 260 / 0.94);

  /* Titanium & Anodized Aluminum Typography (20% Secondary) */
  --ink-primary: oklch(0.968 0.004 260);        /* #F4F6FA Crisp Titanium White */
  --ink-secondary: oklch(0.835 0.009 260);      /* #C5CBD6 Brushed Silver */
  --ink-muted: oklch(0.635 0.014 260);          /* #868F9F Muted Aluminum */
  --ink-dim: oklch(0.46 0.012 260);

  --border-hairline: oklch(1 0 0 / 0.08);
  --border-strong: oklch(1 0 0 / 0.15);
  --specular-top: inset 0 1px 0 oklch(1 0 0 / 0.085);

  /* Surgical Hardware Accents (5% Focal Only) */
  --accent-primary: oklch(0.675 0.205 36);      /* #FF5A26 International Signal Orange */
  --accent-primary-soft: oklch(0.675 0.205 36 / 0.14);
  --accent-primary-glow: oklch(0.675 0.205 36 / 0.28);
  --accent-steel: oklch(0.695 0.135 252);       /* #5B93F5 Precision Ice Cobalt */
  --accent-steel-soft: oklch(0.695 0.135 252 / 0.14);
  --accent-amber: oklch(0.78 0.155 74);         /* #F5A623 Industrial Caution Gold */

  /* Typography Stacks */
  --font-display: 'Space Grotesk', 'Noto Sans SC', 'PingFang SC', -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Noto Sans SC', 'PingFang SC', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Menlo', monospace;

  /* Radii & Layout */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --container-max: 1380px;
}

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

html {
  background-color: var(--surface-0);
  color: var(--ink-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background-color: var(--surface-0);
  background-image:
    radial-gradient(ellipse 75% 42% at 50% -8%, oklch(0.25 0.025 255 / 0.35), transparent 65%),
    radial-gradient(ellipse 50% 35% at 85% 18%, oklch(0.26 0.045 38 / 0.12), transparent 60%);
  overflow-x: hidden;
  position: relative;
}

/* Precision Architectural Structural Grid */
.arch-grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-size: 72px 72px;
  background-image:
    linear-gradient(to right, oklch(1 0 0 / 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(1 0 0 / 0.022) 1px, transparent 1px);
  mask-image: radial-gradient(circle at 50% 35%, black 28%, transparent 90%);
  -webkit-mask-image: radial-gradient(circle at 50% 35%, black 28%, transparent 90%);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 3vw, 2.5rem);
  position: relative;
  z-index: 2;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  padding: 0.34rem 0.82rem;
  border-radius: var(--radius-pill);
  background: oklch(1 0 0 / 0.045);
  border: 1px solid oklch(1 0 0 / 0.11);
  box-shadow: var(--specular-top);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
  animation: pulseDot 2.4s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw + 0.6rem, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink-primary);
  margin-top: 0.9rem;
}

.section-sub {
  font-size: clamp(0.98rem, 1.1vw + 0.5rem, 1.1rem);
  color: var(--ink-muted);
  max-width: 66ch;
  margin-top: 0.85rem;
  line-height: 1.7;
}

/* ==========================================================================
   FLOATING TELEMETRY NAVBAR
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 28px), 1340px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.62rem 1.1rem;
  border-radius: var(--radius-pill);
  background: oklch(0.145 0.009 260 / 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--specular-top), 0 16px 40px oklch(0 0 0 / 0.45);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  text-decoration: none;
  color: var(--ink-primary);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(145deg, #1d222d, #0f1218);
  border: 1px solid oklch(1 0 0 / 0.16);
  display: grid;
  place-items: center;
  box-shadow: var(--specular-top);
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  color: var(--ink-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-pill);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--ink-primary);
  background: oklch(1 0 0 / 0.07);
  outline: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.52rem 1.08rem;
  border-radius: var(--radius-pill);
  border: 1px solid oklch(0.74 0.19 38 / 0.65);
  background: linear-gradient(180deg, #ff6633, #e64817);
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 22px oklch(0.675 0.205 36 / 0.32), inset 0 1px 0 oklch(1 0 0 / 0.32);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary:hover {
  filter: brightness(1.07);
  box-shadow: 0 8px 28px oklch(0.675 0.205 36 / 0.46), inset 0 1px 0 oklch(1 0 0 / 0.42);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-primary:focus-visible,
.btn-ghost:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.98rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: oklch(1 0 0 / 0.045);
  color: var(--ink-primary);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
}

.btn-ghost:hover {
  background: oklch(1 0 0 / 0.09);
  border-color: oklch(1 0 0 / 0.28);
}

.btn-ghost:active {
  transform: scale(0.97);
}

/* ==========================================================================
   HERO + 3D DIGITAL TWIN COMMAND ARENA
   ========================================================================== */
.hero-section {
  padding-top: 80px;
  padding-bottom: 3rem;
  position: relative;
}

.hero-header-grid {
  display: grid;
  grid-template-columns: 7.4fr 4.6fr;
  gap: 1.75rem;
  align-items: end;
  margin-bottom: 1.15rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.8vw + 0.5rem, 3.65rem);
  font-weight: 700;
  line-height: 1.09;
  letter-spacing: -0.03em;
  margin-top: 0.65rem;
  color: var(--ink-primary);
}

/* Brushed Titanium Metallic Contrast instead of AI Neon Color */
.hero-headline .accent-line {
  background: linear-gradient(92deg, #ffffff 0%, #cbd5e1 52%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-meta-col {
  display: flex;
  flex-direction: column;
  gap: 0.88rem;
  align-items: flex-start;
  padding-bottom: 0.2rem;
}

.hero-lead {
  font-size: 0.95rem;
  color: var(--ink-secondary);
  line-height: 1.68;
}

.hero-lead strong {
  color: var(--ink-primary);
}

.hero-kpi-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  width: 100%;
}

.kpi-chip {
  flex: 1 1 110px;
  padding: 0.55rem 0.82rem;
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--specular-top);
}

.kpi-chip-val {
  font-family: var(--font-mono);
  font-size: 1.16rem;
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.2;
}

.kpi-chip:first-child .kpi-chip-val {
  color: var(--accent-primary);
}

.kpi-chip-lbl {
  font-size: 0.72rem;
  color: var(--ink-muted);
  margin-top: 0.12rem;
}

/* ==========================================================================
   3D VIRTUAL FACTORY STAGE SHELL
   ========================================================================== */
.twin-stage-wrapper {
  position: relative;
  width: 100%;
  height: clamp(520px, 65vh, 720px);
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 42%, #151923 0%, #0a0c10 100%);
  border: 1px solid oklch(1 0 0 / 0.14);
  box-shadow:
    var(--specular-top),
    0 28px 80px oklch(0 0 0 / 0.68);
  overflow: hidden;
  transition: height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
}

.twin-stage-wrapper.is-theater {
  position: fixed;
  inset: 12px;
  width: auto;
  height: auto;
  z-index: 500;
  border-radius: 18px;
}

#factory-canvas-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
}

#factory-canvas-container.cursor-pointer {
  cursor: pointer;
}

#factory-canvas-container.cursor-robot {
  cursor: grab;
}

#factory-canvas-container:active,
#factory-canvas-container.is-dragging {
  cursor: grabbing !important;
}

/* Precision Machined Corner Reticles */
.hud-corner {
  position: absolute;
  width: 13px;
  height: 13px;
  pointer-events: none;
  z-index: 12;
  border-color: oklch(1 0 0 / 0.35);
}
.hud-corner.tl { top: 12px; left: 12px; border-top: 1.5px solid; border-left: 1.5px solid; }
.hud-corner.tr { top: 12px; right: 12px; border-top: 1.5px solid; border-right: 1.5px solid; }
.hud-corner.bl { bottom: 12px; left: 12px; border-bottom: 1.5px solid; border-left: 1.5px solid; }
.hud-corner.br { bottom: 12px; right: 12px; border-bottom: 1.5px solid; border-right: 1.5px solid; }

.twin-hud-top {
  position: absolute;
  top: 16px;
  left: 20px;
  right: 20px;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  pointer-events: none;
}

.twin-hud-top > * {
  pointer-events: auto;
}

.hud-pill-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.28rem;
  border-radius: var(--radius-pill);
  background: var(--surface-hud);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--specular-top), 0 8px 24px oklch(0 0 0 / 0.4);
}

.hud-cam-btn {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.36rem 0.72rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.hud-cam-btn:hover {
  color: var(--ink-primary);
  background: oklch(1 0 0 / 0.07);
}

.hud-cam-btn.is-active {
  background: oklch(1 0 0 / 0.12);
  color: var(--ink-primary);
  box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.22);
}

/* Left HUD: Fleet Selector + Embodied AI Loop */
.twin-hud-left {
  position: absolute;
  top: 64px;
  left: 16px;
  width: 242px;
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  pointer-events: none;
}

.hud-panel {
  pointer-events: auto;
  background: var(--surface-hud);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 0.8rem 0.9rem;
  box-shadow: var(--specular-top), 0 12px 32px oklch(0 0 0 / 0.42);
}

.hud-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.55rem;
}

.fleet-list {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.fleet-card {
  width: 100%;
  text-align: left;
  background: oklch(1 0 0 / 0.03);
  border: 1px solid oklch(1 0 0 / 0.07);
  border-radius: 10px;
  padding: 0.55rem 0.68rem;
  cursor: pointer;
  color: var(--ink-primary);
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.fleet-card:hover {
  background: oklch(1 0 0 / 0.065);
  border-color: oklch(1 0 0 / 0.18);
}

.fleet-card.is-selected {
  background: oklch(0.675 0.205 36 / 0.11);
  border-color: oklch(0.675 0.205 36 / 0.55);
  box-shadow: inset 2px 0 0 var(--accent-primary);
}

.fleet-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.fleet-id {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.fleet-card.is-selected .fleet-id {
  color: var(--accent-primary);
}

.fleet-badge {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  padding: 0.1rem 0.44rem;
  border-radius: 99px;
  background: oklch(1 0 0 / 0.07);
  color: var(--ink-secondary);
}

.fleet-badge.busy {
  background: var(--accent-steel-soft);
  color: #8ab4ff;
}

.fleet-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-primary);
}

.fleet-task-line {
  font-size: 0.7rem;
  color: var(--ink-muted);
}

.ai-loop-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.32rem;
}

.ai-step-pill {
  padding: 0.38rem 0.25rem;
  border-radius: 8px;
  background: oklch(1 0 0 / 0.03);
  border: 1px solid oklch(1 0 0 / 0.06);
  text-align: center;
  transition: all 0.22s ease;
}

.ai-step-pill .num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--ink-dim);
}

.ai-step-pill .lbl {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-top: 2px;
}

.ai-step-pill.is-lit {
  background: var(--accent-primary-soft);
  border-color: oklch(0.675 0.205 36 / 0.58);
}

.ai-step-pill.is-lit .num,
.ai-step-pill.is-lit .lbl {
  color: #ff7a50;
}

/* Right HUD: Live Telemetry & Task Feed */
.twin-hud-right {
  position: absolute;
  top: 64px;
  right: 16px;
  width: 238px;
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  pointer-events: none;
}

.telemetry-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.tele-box {
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: oklch(1 0 0 / 0.035);
  border: 1px solid oklch(1 0 0 / 0.06);
}

.tele-val {
  font-family: var(--font-mono);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.tele-val.accent { color: var(--ink-primary); }
.tele-val.amber { color: var(--accent-primary); }

.tele-lbl {
  font-size: 0.66rem;
  color: var(--ink-muted);
}

.event-feed {
  max-height: 148px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.36rem;
  scrollbar-width: thin;
}

.event-item {
  font-size: 0.7rem;
  line-height: 1.4;
  color: var(--ink-secondary);
  padding: 0.32rem 0.48rem;
  border-radius: 6px;
  background: oklch(1 0 0 / 0.03);
  border-left: 2px solid var(--accent-steel);
}

.event-item.warn {
  border-left-color: var(--accent-primary);
  background: var(--accent-primary-soft);
}

.event-time {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--ink-dim);
  margin-right: 0.35rem;
}

/* Bottom Dock HUD */
.twin-hud-bottom {
  position: absolute;
  bottom: 16px;
  left: 20px;
  right: 20px;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  pointer-events: none;
}

.mission-dock,
.sim-tools-dock {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  padding: 0.48rem;
  border-radius: 16px;
  background: var(--surface-hud);
  border: 1px solid var(--border-strong);
  box-shadow: var(--specular-top), 0 18px 42px oklch(0 0 0 / 0.55);
}

.dock-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--ink-muted);
  padding: 0 0.55rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mission-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: 11px;
  border: 1px solid oklch(1 0 0 / 0.1);
  background: oklch(1 0 0 / 0.045);
  color: var(--ink-primary);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.mission-btn .m-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #8ab4ff;
  background: var(--accent-steel-soft);
  padding: 0.08rem 0.38rem;
  border-radius: 5px;
}

.mission-btn:hover {
  background: oklch(1 0 0 / 0.1);
  border-color: oklch(1 0 0 / 0.26);
  transform: translateY(-1px);
}

.mission-btn:active {
  transform: translateY(0) scale(0.98);
}

.mission-btn.is-running {
  background: var(--accent-primary-soft);
  border-color: var(--accent-primary);
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.82rem;
  border-radius: 11px;
  border: 1px solid oklch(1 0 0 / 0.1);
  background: oklch(1 0 0 / 0.045);
  color: var(--ink-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.tool-btn:hover {
  color: var(--ink-primary);
  background: oklch(1 0 0 / 0.09);
}

.tool-btn.obstacle-mode {
  border-color: oklch(0.675 0.205 36 / 0.48);
  color: #ff825c;
  background: var(--accent-primary-soft);
}

.tool-btn.swarm-active {
  border-color: oklch(0.695 0.135 252 / 0.48);
  color: #93bbfd;
  background: var(--accent-steel-soft);
}

/* 3D Projected HTML Labels Layer */
.twin-labels-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
}

.spatial-pin {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -100%);
  pointer-events: none;
  padding: 0.24rem 0.58rem;
  border-radius: 99px;
  background: oklch(0.14 0.01 260 / 0.92);
  border: 1px solid oklch(1 0 0 / 0.16);
  color: var(--ink-secondary);
  font-size: 0.69rem;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  box-shadow: 0 4px 14px oklch(0 0 0 / 0.5);
  will-change: transform;
}

.spatial-pin .pin-code {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: #8ab4ff;
}

.spatial-pin.is-hover,
.spatial-pin.is-target {
  background: oklch(0.675 0.205 36 / 0.22);
  border-color: var(--accent-primary);
  color: var(--ink-primary);
}

.spatial-pin.is-hover .pin-code,
.spatial-pin.is-target .pin-code {
  color: #ff8560;
}

.twin-toast {
  position: absolute;
  top: 68px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  z-index: 20;
  padding: 0.5rem 1.05rem;
  border-radius: var(--radius-pill);
  background: oklch(0.15 0.01 260 / 0.95);
  border: 1px solid oklch(1 0 0 / 0.22);
  box-shadow: 0 12px 32px oklch(0 0 0 / 0.55);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-primary);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  white-space: nowrap;
}

.twin-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.twin-toast.warn {
  border-color: var(--accent-primary);
  color: #ff8c69;
}

/* ==========================================================================
   AWARDS MARQUEE STRIP (Slide 2)
   ========================================================================== */
.awards-strip {
  margin-top: 1.4rem;
  padding: 0.95rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--surface-1);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--specular-top);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.award-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: var(--ink-secondary);
}

.award-rank {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 700;
  padding: 0.16rem 0.5rem;
  border-radius: 6px;
  background: var(--accent-primary-soft);
  color: #ff7d54;
  border: 1px solid oklch(0.675 0.205 36 / 0.32);
}

/* ==========================================================================
   GENERIC SECTION & SPOTLIGHT BENTO CARDS
   ========================================================================== */
.page-section {
  padding: clamp(4.5rem, 7vw, 6.8rem) 0;
  position: relative;
  border-top: 1px solid oklch(1 0 0 / 0.055);
}

.spotlight-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--specular-top), 0 18px 42px oklch(0 0 0 / 0.32);
  padding: clamp(1.35rem, 2.2vw, 2rem);
  transition: border-color 0.25s ease;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(
    460px circle at var(--spot-x, 50%) var(--spot-y, 50%),
    oklch(1 0 0 / 0.065),
    transparent 45%
  );
}

.spotlight-card:hover::before {
  opacity: 1;
}

.spotlight-card:hover {
  border-color: oklch(1 0 0 / 0.16);
}

.spotlight-card > * {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   SECTION 02: 1,003B MARKET TAM & PAIN POINTS
   ========================================================================== */
.market-bento-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 1.4rem;
  margin-top: 2.4rem;
}

.tam-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.tam-big-number {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1;
  color: var(--ink-primary);
  letter-spacing: -0.03em;
}

.tam-big-number span {
  color: var(--accent-primary);
  font-size: 0.5em;
  margin-left: 0.22rem;
}

.sector-filter-tabs {
  display: inline-flex;
  gap: 0.32rem;
  padding: 0.28rem;
  border-radius: var(--radius-pill);
  background: var(--surface-0);
  border: 1px solid var(--border-hairline);
}

.sector-tab {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.36rem 0.8rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.18s ease;
}

.sector-tab.is-active {
  background: var(--ink-primary);
  color: var(--surface-0);
}

.tam-bars-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tam-bar-row {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: oklch(1 0 0 / 0.025);
  border: 1px solid oklch(1 0 0 / 0.06);
  transition: all 0.22s ease;
}

.tam-bar-row.is-handling {
  border-color: oklch(1 0 0 / 0.13);
  background: oklch(1 0 0 / 0.042);
}

.tam-bar-row.is-dimmed {
  opacity: 0.26;
}

.tam-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  margin-bottom: 0.45rem;
  gap: 0.5rem;
}

.tam-row-meta {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--ink-muted);
}

.tam-row-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink-primary);
}

.tam-bar-row.is-handling .tam-row-val {
  color: #ff7a50;
}

.tam-progress-track {
  height: 6px;
  border-radius: 99px;
  background: oklch(1 0 0 / 0.07);
  overflow: hidden;
}

.tam-progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-primary), #ff8d66);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.tam-bar-row:not(.is-handling) .tam-progress-fill {
  background: linear-gradient(90deg, #4b6cb7, #7c9ce8);
}

.pain-points-stack {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 0.85rem;
}

.pain-card {
  padding: 1.05rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--surface-1);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--specular-top);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.95rem;
  align-items: start;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.pain-card:hover {
  border-color: oklch(1 0 0 / 0.2);
  transform: translateX(3px);
}

.pain-idx {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: #ff7a50;
  padding: 0.28rem 0.5rem;
  border-radius: 8px;
  background: var(--accent-primary-soft);
  border: 1px solid oklch(0.675 0.205 36 / 0.25);
}

.pain-title {
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--ink-primary);
  margin-bottom: 0.25rem;
}

.pain-desc {
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.56;
}

/* ==========================================================================
   SECTION 03: "ONE BRAIN, MULTI-FORM" REAL ROBOTS & FACTORY VIDEOS
   ========================================================================== */
.fleet-showcase-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 1.5rem;
  margin-top: 2.4rem;
  align-items: stretch;
}

.robot-selector-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.robot-tab-card {
  width: 100%;
  text-align: left;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-md);
  background: var(--surface-1);
  border: 1px solid var(--border-hairline);
  color: var(--ink-primary);
  cursor: pointer;
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 1rem;
  align-items: center;
  transition: all 0.22s ease;
}

.robot-tab-card:hover {
  border-color: oklch(1 0 0 / 0.2);
  background: var(--surface-2);
}

.robot-tab-card.is-active {
  background: linear-gradient(135deg, oklch(0.22 0.02 258), var(--surface-1));
  border-color: oklch(0.675 0.205 36 / 0.65);
  box-shadow: inset 3px 0 0 var(--accent-primary), 0 12px 28px oklch(0 0 0 / 0.28);
}

.robot-thumb-wrap {
  width: 82px;
  height: 66px;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 45%, #262b38 0%, #12151d 100%);
  border: 1px solid oklch(1 0 0 / 0.09);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 5px;
}

.robot-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.55));
}

.robot-tab-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #8ab4ff;
}

.robot-tab-card.is-active .robot-tab-tag {
  color: #ff7d54;
}

.robot-tab-name {
  font-size: 0.98rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

.robot-tab-scene {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 0.18rem;
}

.robot-stage-panel {
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--specular-top), 0 24px 56px oklch(0 0 0 / 0.42);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.video-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #07090d;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.video-viewport video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.04) saturate(0.92);
}

.video-viewport video.rotate-cw-90 {
  width: 56.25%;
  height: 177.78%;
  object-fit: contain;
  transform: rotate(90deg);
}

.video-live-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  padding: 0.3rem 0.72rem;
  border-radius: var(--radius-pill);
  background: oklch(0.13 0.01 260 / 0.88);
  border: 1px solid oklch(1 0 0 / 0.18);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-primary);
}

.cad-floating-preview {
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 148px;
  height: 110px;
  z-index: 4;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 45%, rgba(38, 44, 58, 0.92), rgba(16, 19, 26, 0.94));
  border: 1px solid oklch(1 0 0 / 0.16);
  padding: 8px;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px oklch(0 0 0 / 0.55);
  pointer-events: none;
}

.cad-floating-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6));
}

.robot-spec-footer {
  padding: 1.2rem 1.45rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-hairline);
}

.spec-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.spec-pill {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  background: oklch(1 0 0 / 0.045);
  border: 1px solid oklch(1 0 0 / 0.09);
  color: var(--ink-secondary);
}

/* ==========================================================================
   SECTION 04: FULL-STACK ARCHITECTURE & CUSTOM SERVO SCHEMATIC
   ========================================================================== */
.stack-layout {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: 1.5rem;
  margin-top: 2.4rem;
}

.four-layer-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.layer-tile {
  padding: 1.35rem;
  border-radius: var(--radius-md);
  background: var(--surface-1);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--specular-top);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: border-color 0.22s ease, transform 0.22s ease;
}

.layer-tile:hover {
  border-color: oklch(1 0 0 / 0.2);
  transform: translateY(-2px);
}

.layer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.layer-organ {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink-primary);
  white-space: nowrap;
}

.layer-code {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: #8ab4ff;
  padding: 0.14rem 0.45rem;
  border-radius: 6px;
  background: var(--accent-steel-soft);
  white-space: nowrap;
}

.layer-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  font-size: 0.83rem;
  color: var(--ink-secondary);
}

.layer-points li::before {
  content: '▪ ';
  color: var(--accent-primary);
}

.hardware-vla-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
}

/* Bespoke Dark Hardware Architecture Schematic (Replaces jarring CAD screenshot) */
.servo-blueprint-box {
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, #141822 0%, #0c0e14 100%);
  border: 1px solid oklch(1 0 0 / 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.servo-svg-wrap {
  width: 100%;
  border-radius: 10px;
  background: #090b10;
  border: 1px solid oklch(1 0 0 / 0.07);
  padding: 0.75rem;
}

.servo-svg-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

.dual-engine-slider-box {
  padding: 1.15rem;
  border-radius: var(--radius-md);
  background: #0d1016;
  border: 1px solid oklch(1 0 0 / 0.1);
}

.blend-range {
  width: 100%;
  accent-color: var(--accent-primary);
  margin: 0.8rem 0;
  cursor: pointer;
  height: 6px;
  touch-action: pan-y;
}

/* ==========================================================================
   SECTION 05: 20-YEAR MES LIVE CONSOLE & COMMERCIAL TRACTION
   ========================================================================== */
.commercial-grid {
  display: grid;
  grid-template-columns: 5.2fr 6.8fr;
  gap: 1.5rem;
  margin-top: 2.4rem;
}

.mes-nine-apps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.42rem;
  margin-top: 1rem;
}

.mes-app-chip {
  padding: 0.44rem 0.5rem;
  border-radius: 8px;
  background: oklch(1 0 0 / 0.03);
  border: 1px solid oklch(1 0 0 / 0.07);
  font-size: 0.75rem;
  text-align: center;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.18s ease;
}

.mes-app-chip:hover,
.mes-app-chip.is-active {
  background: var(--accent-steel-soft);
  border-color: oklch(0.695 0.135 252 / 0.5);
  color: #ffffff;
}

/* Bespoke Dark-Mode Live MES Telemetry Console (Replaces clashing 2021 JPGs!) */
.mes-live-console {
  margin-top: 1.15rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: #0b0d13;
  border: 1px solid oklch(1 0 0 / 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mes-console-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.69rem;
  color: var(--ink-muted);
  padding-bottom: 0.55rem;
  border-bottom: 1px solid oklch(1 0 0 / 0.07);
}

.mes-console-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.mes-mini-stat {
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: oklch(1 0 0 / 0.03);
  border: 1px solid oklch(1 0 0 / 0.06);
}

.mes-mini-val {
  font-family: var(--font-mono);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.mes-mini-lbl {
  font-size: 0.66rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

.mes-stream-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.48rem 0.68rem;
  border-radius: 8px;
  background: oklch(0.695 0.135 252 / 0.08);
  border: 1px solid oklch(0.695 0.135 252 / 0.22);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #a3c4ff;
}

.revenue-chart-bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: end;
  height: 188px;
  padding-top: 1.4rem;
  margin-top: 0.65rem;
}

.rev-col {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 0.45rem;
}

.rev-bar {
  width: 100%;
  max-width: 92px;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, #3b465e, rgba(59, 70, 94, 0.25));
  border: 1px solid oklch(1 0 0 / 0.18);
  transition: height 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.rev-col:last-child .rev-bar {
  background: linear-gradient(180deg, var(--accent-primary), oklch(0.675 0.205 36 / 0.22));
  border-color: oklch(0.75 0.19 36 / 0.7);
  box-shadow: 0 0 28px oklch(0.675 0.205 36 / 0.22);
}

.rev-amount {
  font-family: var(--font-mono);
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.rev-year {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.clients-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.client-order-card {
  padding: 0.95rem 1.05rem;
  border-radius: var(--radius-md);
  background: oklch(1 0 0 / 0.028);
  border: 1px solid var(--border-hairline);
}

.client-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.client-name {
  font-weight: 700;
  font-size: 0.91rem;
  color: var(--ink-primary);
}

.invest-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.12rem 0.46rem;
  border-radius: 99px;
  background: var(--accent-primary-soft);
  color: #ff8057;
  border: 1px solid oklch(0.675 0.205 36 / 0.38);
  white-space: nowrap;
  flex-shrink: 0;
}

.invest-tag.delivery {
  background: var(--accent-steel-soft);
  color: #93bbfd;
  border-color: oklch(0.695 0.135 252 / 0.38);
}

.client-detail {
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.52;
}

/* ==========================================================================
   SECTION 06: UNIFIED STUDIO EXECUTIVE LEADERSHIP TEAM (Slide 3)
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.05rem;
  margin-top: 2.4rem;
}

.team-card {
  border-radius: var(--radius-md);
  background: #11141b;
  border: 1px solid var(--border-hairline);
  box-shadow: var(--specular-top), 0 14px 34px oklch(0 0 0 / 0.32);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: oklch(1 0 0 / 0.22);
}

.team-portrait-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #121826;
  overflow: hidden;
  position: relative;
}

.team-portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-body {
  padding: 0.95rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  flex: 1;
}

.team-role {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #ff7d54;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-name {
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.team-bio {
  font-size: 0.76rem;
  color: var(--ink-muted);
  line-height: 1.56;
  margin-top: 0.18rem;
}

/* ==========================================================================
   FOOTER (Slide 15)
   ========================================================================== */
.site-footer {
  padding: 3.5rem 0 3rem;
  border-top: 1px solid var(--border-hairline);
  background: #07080b;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-motto {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 700;
}

.footer-motto span {
  color: var(--accent-primary);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1120px) {
  .hero-header-grid,
  .market-bento-grid,
  .fleet-showcase-grid,
  .stack-layout,
  .commercial-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .twin-hud-right {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .twin-stage-wrapper {
    height: 600px;
  }
  .twin-hud-left {
    width: 208px;
    top: 62px;
    left: 10px;
  }
  .hud-cam-btn {
    padding: 0.3rem 0.48rem;
    font-size: 0.68rem;
  }
  .twin-toast {
    top: auto;
    bottom: 118px;
    font-size: 0.72rem;
    max-width: calc(100% - 24px);
    white-space: normal;
    text-align: center;
  }
  .twin-hud-bottom {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .mission-btn {
    padding: 0.42rem 0.65rem;
    font-size: 0.72rem;
  }
  .four-layer-stack,
  .clients-list {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
  .twin-hud-left .ai-loop-panel {
    display: none;
  }
}

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