/* 053 · Auto Machines (آلات الدقة) — 1:1 Single-Viewport 3D Robotic HUD Stylesheet */
:root {
  --am-bg: #000000;
  --am-ink: #ffffff;
  --am-muted: rgba(255, 255, 255, 0.7);
  --am-line: rgba(255, 255, 255, 0.1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--am-bg);
  color: var(--am-ink);
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, p, a, button, span { letter-spacing: 0; }
[dir="ltr"] { font-family: 'JetBrains Mono', monospace; }

/* Single 100dvh Interactive 3D HUD Stage (No Top Navbar!) */
.am-stage {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  background: #000000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 3.5vw, 40px);
}

/* Interactive Drag-Orbit 6-Axis Robotic Arm Viewport */
.am-robot-viewport {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
}

.am-robot-viewport:active { cursor: grabbing; }

.am-robot-rig {
  width: min(1320px, 100vw);
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
  will-change: transform;
}

.am-robot-rig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.am-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to left, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.36) 48%, rgba(0, 0, 0, 0.25) 100%),
    linear-gradient(to top, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0) 42%);
}

/* Peripheral HUD Overlay */
.am-hud-top,
.am-hud-bot {
  position: relative;
  z-index: 10;
  pointer-events: none;
}

.am-hud-top a, .am-hud-top button,
.am-hud-bot a, .am-hud-bot button {
  pointer-events: auto;
}

.am-h1 {
  margin: 0 0 18px;
  max-width: 620px;
  font-family: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;
  font-size: clamp(2.4rem, 4.9vw, 4.25rem);
  font-weight: 300;
  line-height: 1.24;
  padding-block: 8px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.82) 50%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.am-intro {
  margin: 0 0 22px;
  max-width: 430px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
}

/* 3 Circular 40x40 Outline Mode Buttons */
.am-circle-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.am-circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.am-circle-btn:hover,
.am-circle-btn.is-active {
  border-color: rgba(255, 255, 255, 0.75);
  background: #ffffff;
  color: #000000;
}

/* Bottom Row: Technical Specs Table + Frosted Pill Dock */
.am-hud-bot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
}

.am-specs-box {
  width: min(420px, 100%);
}

.am-specs-kicker {
  display: block;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.28em;
  margin-bottom: 14px;
}

.am-spec-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--am-line);
  font-size: 0.82rem;
}

.am-spec-row span:first-child {
  color: var(--am-muted);
}

.am-dock-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.am-pill-dock {
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.am-dock-pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.74rem;
  white-space: nowrap;
}

.am-dock-pill.is-solid {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
  font-weight: 700;
}

@media (max-width: 720px) {
  .am-dock-col { align-items: flex-start; }
}
